Add FIXME comment.

This commit is contained in:
Brian May 2015-11-18 20:08:15 +11:00
parent 6ebf76a5d8
commit eaad54f68b

View File

@ -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)