• vieira's avatar
    Use getaddrinfo to obtain a correct sockaddr · 4c50be0b
    vieira authored
    While with AF_INET sockaddr is a 2-tuple composed by (address, port),
    with AF_INET6 it is a 4-tuple with (address, port, flow info, scope id).
    
    We were always passing a 2-tuple to socket.connect which would fail whenever
    the address was, for instance, a link-local IPv6 address that needs a scope id.
    
    With this change we now use getaddrinfo to correctly compute the full tuple.
    
    Fixes #156.
    4c50be0b
Name
Last commit
Last update
docs Loading commit data...
sshuttle Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGES.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
conftest.py Loading commit data...
requirements.txt Loading commit data...
run Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...