diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-11-18 20:08:15 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-11-18 20:08:15 +1100 |
commit | eaad54f68b724753a9789369eb7219de66faf455 (patch) | |
tree | ccc34276d3db58e13d3400bee6cff1d82e47f6fe | |
parent | 6ebf76a5d8e2d55008f026d7876653f2b9f9bb2e (diff) |
Add FIXME comment.
-rw-r--r-- | sshuttle/methods/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sshuttle/methods/__init__.py b/sshuttle/methods/__init__.py index 603f4c6..35e828b 100644 --- a/sshuttle/methods/__init__.py +++ b/sshuttle/methods/__init__.py @@ -13,6 +13,7 @@ def original_dst(sock): sockaddr_in = sock.getsockopt(socket.SOL_IP, SO_ORIGINAL_DST, SOCKADDR_MIN) (proto, port, a, b, c, d) = struct.unpack('!HHBBBB', sockaddr_in[:8]) + # FIXME: decoding is IPv4 only. assert(socket.htons(proto) == socket.AF_INET) ip = '%d.%d.%d.%d' % (a, b, c, d) return (ip, port) |