diff options
author | Ammonite <pierre@ambox.fr> | 2017-01-22 15:28:14 +0100 |
---|---|---|
committer | Ammonite <pierre@ambox.fr> | 2017-01-22 15:28:14 +0100 |
commit | 0ca1916f1bb8728af3289f5fe975951af97f4ffa (patch) | |
tree | 7dbf1425895bedb79568fdb8a48fd219158841f3 /examples/complex/dns_spoofing.py | |
parent | e8fc4af4c62cc6daddea182b01ca0fd093b159c7 (diff) | |
download | mitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.tar.gz mitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.tar.bz2 mitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.zip |
Fix host extraction
Diffstat (limited to 'examples/complex/dns_spoofing.py')
-rw-r--r-- | examples/complex/dns_spoofing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index c93930f3..1d703537 100644 --- a/examples/complex/dns_spoofing.py +++ b/examples/complex/dns_spoofing.py @@ -51,7 +51,7 @@ class Rerouter: m = parse_host_header.match(self.host_header) if m: - host_header = m.group("host").strip("[]") + self.host_header = m.group("host").strip("[]") if m.group("port"): port = int(m.group("port")) |