]> jfr.im git - yt-dlp.git/commit
[networking] Fix various socks proxy bugs (#8065)
authorcoletdjnz <redacted>
Mon, 18 Sep 2023 07:33:26 +0000 (07:33 +0000)
committerGitHub <redacted>
Mon, 18 Sep 2023 07:33:26 +0000 (07:33 +0000)
commit20fbbd9249a2f26c7ae579bde5ba5d69aa8fac69
treec13dd0055d9b7d1566d884d77c27d3bd27143317
parent81f46ac573dc443ad48560f308582a26784d3015
[networking] Fix various socks proxy bugs (#8065)

- Fixed support for IPv6 socks proxies
- Fixed support for IPv6 over socks5
- Fixed --source-address not being obeyed for socks4 and socks5
- Fixed socks4a when the destination address is an IPv4 address

Closes https://github.com/yt-dlp/yt-dlp/issues/7959
Fixes https://github.com/ytdl-org/youtube-dl/issues/15368

Authored by: coletdjnz
Co-authored-by: Simon Sawicki <redacted>
Co-authored-by: bashonly <redacted>
test/test_socks.py
yt_dlp/networking/_helper.py
yt_dlp/networking/_urllib.py
yt_dlp/socks.py