yt-dlp/yt_dlp/networking
coletdjnz 20fbbd9249
[networking] Fix various socks proxy bugs ()
- 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 <accounts@grub4k.xyz>
Co-authored-by: bashonly <bashonly@bashonly.com>
..
__init__.py [networking] Rewrite architecture ()
_helper.py [networking] Fix various socks proxy bugs ()
_urllib.py [networking] Fix various socks proxy bugs ()
common.py [networking] Add request handler preference framework ()
exceptions.py [core] Fix support for upcoming Python 3.12 ()