aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/cmdline.py1
-rw-r--r--mitmproxy/options.py2
-rw-r--r--netlib/exceptions.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/cmdline.py b/mitmproxy/cmdline.py
index 09866f5b..b5b939b8 100644
--- a/mitmproxy/cmdline.py
+++ b/mitmproxy/cmdline.py
@@ -481,6 +481,7 @@ def proxy_options(parser):
help="Use the client's IP for server-side connections"
)
+
def proxy_ssl_options(parser):
# TODO: Agree to consistently either use "upstream" or "server".
group = parser.add_argument_group("SSL")
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index 9ef1f108..0ac44cd8 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -69,7 +69,7 @@ class Options(optmanager.OptManager):
mode = "regular", # type: str
no_upstream_cert = False, # type: bool
rawtcp = False, # type: bool
- spoof_source_address = False, # type: bool
+ spoof_source_address = False, # type: bool
upstream_server = "", # type: str
upstream_auth = "", # type: str
ssl_version_client="secure", # type: str
diff --git a/netlib/exceptions.py b/netlib/exceptions.py
index 795926f1..37651409 100644
--- a/netlib/exceptions.py
+++ b/netlib/exceptions.py
@@ -59,5 +59,6 @@ class InvalidCertificateException(TlsException):
class Timeout(TcpException):
pass
+
class ProtocolException(NetlibException):
pass