mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-26 12:18:45 +02:00
Add FIXME comment.
This commit is contained in:
parent
6ebf76a5d8
commit
eaad54f68b
@ -13,6 +13,7 @@ def original_dst(sock):
|
|||||||
sockaddr_in = sock.getsockopt(socket.SOL_IP,
|
sockaddr_in = sock.getsockopt(socket.SOL_IP,
|
||||||
SO_ORIGINAL_DST, SOCKADDR_MIN)
|
SO_ORIGINAL_DST, SOCKADDR_MIN)
|
||||||
(proto, port, a, b, c, d) = struct.unpack('!HHBBBB', sockaddr_in[:8])
|
(proto, port, a, b, c, d) = struct.unpack('!HHBBBB', sockaddr_in[:8])
|
||||||
|
# FIXME: decoding is IPv4 only.
|
||||||
assert(socket.htons(proto) == socket.AF_INET)
|
assert(socket.htons(proto) == socket.AF_INET)
|
||||||
ip = '%d.%d.%d.%d' % (a, b, c, d)
|
ip = '%d.%d.%d.%d' % (a, b, c, d)
|
||||||
return (ip, port)
|
return (ip, port)
|
||||||
|
Loading…
Reference in New Issue
Block a user