mitmproxy/libmproxy/platform/__init__.py
2014-07-01 14:37:52 -07:00

13 lines
253 B
Python

import sys
resolver = None
if sys.platform == "linux2":
import linux
resolver = linux.Resolver
elif sys.platform == "darwin":
import osx
resolver = osx.Resolver
elif "freebsd" in sys.platform:
import osx
resolver = osx.Resolver