diff options
author | Mike C <miguelc@r2d2.geek.local> | 2015-04-27 02:31:58 +0100 |
---|---|---|
committer | Mike C <miguelc@r2d2.geek.local> | 2015-04-27 02:31:58 +0100 |
commit | b942f98f372abec974968d88119b5b573e4cb39c (patch) | |
tree | c7214e957ce5ecc030b5c6e451ad5ae930131779 /libmproxy/platform/__init__.py | |
parent | 1c5277b21fd283a3b58d145c5090f59d657b594d (diff) | |
download | mitmproxy-b942f98f372abec974968d88119b5b573e4cb39c.tar.gz mitmproxy-b942f98f372abec974968d88119b5b573e4cb39c.tar.bz2 mitmproxy-b942f98f372abec974968d88119b5b573e4cb39c.zip |
+ Use sys.platform.startswith("freebsd") instead of matching just freebsd10.
+ This means support for any freebsd version (note that I only tested 11-CURRENT and 9)
Diffstat (limited to 'libmproxy/platform/__init__.py')
-rw-r--r-- | libmproxy/platform/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/platform/__init__.py b/libmproxy/platform/__init__.py index 1b2cf909..e1ff7c47 100644 --- a/libmproxy/platform/__init__.py +++ b/libmproxy/platform/__init__.py @@ -8,9 +8,9 @@ if sys.platform == "linux2": elif sys.platform == "darwin": from . import osx resolver = osx.Resolver -elif sys.platform == "freebsd10": +elif sys.platform.startswith("freebsd"): from . import osx resolver = osx.Resolver elif sys.platform == "win32": from . import windows - resolver = windows.Resolver
\ No newline at end of file + resolver = windows.Resolver |