mitmproxy/libmproxy/platform/__init__.py

18 lines
420 B
Python

import sys
resolver = None
setup = None
if sys.platform == "linux2":
from . import linux
resolver = linux.Resolver
elif sys.platform == "darwin":
from . import osx
resolver = osx.Resolver
elif sys.platform == "freebsd10":
from . import osx
resolver = osx.Resolver
elif sys.platform == "win32":
from . import windows
resolver = windows.Resolver
setup = windows.TransparentProxy.setup