aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/platform/linux.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-02-15 14:58:46 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-02-15 14:58:46 +0100
commit33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 (patch)
tree31914a601302579ff817504019296fd7e9e46765 /libmproxy/platform/linux.py
parent36f34f701991b5d474c005ec45e3b66e20f326a8 (diff)
downloadmitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.gz
mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.bz2
mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.zip
move mitmproxy
Diffstat (limited to 'libmproxy/platform/linux.py')
-rw-r--r--libmproxy/platform/linux.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/libmproxy/platform/linux.py b/libmproxy/platform/linux.py
deleted file mode 100644
index 38bfbe42..00000000
--- a/libmproxy/platform/linux.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import socket
-import struct
-
-# Python socket module does not have this constant
-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)
- address = "%d.%d.%d.%d" % (a1, a2, a3, a4)
- return address, port