[Pkg-privacy-commits] [obfsproxy] 255/353: Derp. IPv6 addresses are 16 bytes, and not 12. Heh.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 30c6ae23c37a19571ee4faeb36880ac97ad3d780
Author: Yawning Angel <yawning at schwanenlied.me>
Date:   Tue Mar 4 12:31:20 2014 +0000

    Derp.  IPv6 addresses are 16 bytes, and not 12.  Heh.
    
     * It works over the loopback address at least, still haven't gotten a tunnel.
---
 obfsproxy/network/socks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obfsproxy/network/socks.py b/obfsproxy/network/socks.py
index bac7d9c..0331e4b 100644
--- a/obfsproxy/network/socks.py
+++ b/obfsproxy/network/socks.py
@@ -333,7 +333,7 @@ class SOCKSv5Protocol(network.GenericProtocol):
             if len(msg) < 4 + 16 + 2:
                 return
             try:
-                addr = socket.inet_ntop(socket.AF_INET6, msg[4:16])
+                addr = socket.inet_ntop(socket.AF_INET6, msg[4:20])
             except:
                 log.warning("%s: Failed to parse IPv6 address" % self.name)
                 self.send_reply(SOCKSv5Reply.AddressTypeNotSupported)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list