mitmproxy/libmproxy/platform/__init__.py

13 lines
253 B
Python
Raw Normal View History

import sys
resolver = None
if sys.platform == "linux2":
import linux
resolver = linux.Resolver
elif sys.platform == "darwin":
import osx
resolver = osx.Resolver
2014-07-01 21:37:52 +00:00
elif "freebsd" in sys.platform:
import osx
resolver = osx.Resolver