diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-19 12:37:32 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-19 12:37:32 +1300 |
commit | 264a09e7789500673282075b2f5b9956268f0cea (patch) | |
tree | 31199e39c194f08982e554e5d1621d035a7affae /mitmproxy/dump.py | |
parent | da8dec982373b5137c5700818505887fe0249e98 (diff) | |
download | mitmproxy-264a09e7789500673282075b2f5b9956268f0cea.tar.gz mitmproxy-264a09e7789500673282075b2f5b9956268f0cea.tar.bz2 mitmproxy-264a09e7789500673282075b2f5b9956268f0cea.zip |
Let's dispense with this fiction that we support multiple servers
It's simple enough to re-add if needed, and until then is just cruft.
Diffstat (limited to 'mitmproxy/dump.py')
-rw-r--r-- | mitmproxy/dump.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index bc8716e7..e2167259 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -32,7 +32,7 @@ class Options(options.Options): class DumpMaster(flow.FlowMaster): - def __init__(self, server, options): + def __init__(self, options, server): flow.FlowMaster.__init__(self, options, server) self.has_errored = False self.addons.add(termlog.TermLog()) @@ -41,7 +41,7 @@ class DumpMaster(flow.FlowMaster): # This line is just for type hinting self.options = self.options # type: Options - if not self.options.no_server and server: + if not self.options.no_server: self.add_log( "Proxy server listening at http://{}".format(server.address), "info" |