From 858b0af0bbcbf3c26e71c0b6e33b5de3a8f31c75 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 10 Aug 2014 16:10:49 +0200 Subject: fix #270 --- libmproxy/platform/linux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmproxy/platform/linux.py') diff --git a/libmproxy/platform/linux.py b/libmproxy/platform/linux.py index d37f0fe8..d5cfec90 100644 --- a/libmproxy/platform/linux.py +++ b/libmproxy/platform/linux.py @@ -3,7 +3,8 @@ import socket, struct # Python socket module does not have this constant SO_ORIGINAL_DST = 80 -class Resolver: + +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) -- cgit v1.2.3