diff options
author | Ammonite <pierre@ambox.fr> | 2017-01-21 09:39:34 +0100 |
---|---|---|
committer | Ammonite <pierre@ambox.fr> | 2017-01-21 09:39:34 +0100 |
commit | 93172460aa1d2f69aff1498ff399a286aedc6fc0 (patch) | |
tree | a325fca386a9b21f78c82b0dec0592f4aba43f42 /examples | |
parent | 8aa250d679a0e03546001295ee2e30fcb82516aa (diff) | |
download | mitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.tar.gz mitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.tar.bz2 mitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.zip |
Add blank lines for lint
Diffstat (limited to 'examples')
-rw-r--r-- | examples/complex/dns_spoofing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index 5a1b95d3..eae4860b 100644 --- a/examples/complex/dns_spoofing.py +++ b/examples/complex/dns_spoofing.py @@ -27,6 +27,7 @@ import re # https://bugzilla.mozilla.org/show_bug.cgi?id=45891 parse_host_header = re.compile(r"^(?P<host>[^:]+|\[.+\])(?::(?P<port>\d+))?$") + class Rerouter: def __init__(self): self.hostHeader = None @@ -54,5 +55,6 @@ class Rerouter: flow.request.host = sni or host_header flow.request.port = port + def start(): return Rerouter() |