diff options
Diffstat (limited to 'libmproxy/platform/linux.py')
-rw-r--r-- | libmproxy/platform/linux.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmproxy/platform/linux.py b/libmproxy/platform/linux.py index e60a9950..38bfbe42 100644 --- a/libmproxy/platform/linux.py +++ b/libmproxy/platform/linux.py @@ -6,6 +6,7 @@ SO_ORIGINAL_DST = 80 class Resolver(object): + def original_addr(self, csock): odestdata = csock.getsockopt(socket.SOL_IP, SO_ORIGINAL_DST, 16) _, port, a1, a2, a3, a4 = struct.unpack("!HHBBBBxxxxxxxx", odestdata) |