aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAmmonite <pierre@ambox.fr>2017-01-22 15:28:14 +0100
committerAmmonite <pierre@ambox.fr>2017-01-22 15:28:14 +0100
commit0ca1916f1bb8728af3289f5fe975951af97f4ffa (patch)
tree7dbf1425895bedb79568fdb8a48fd219158841f3 /examples
parente8fc4af4c62cc6daddea182b01ca0fd093b159c7 (diff)
downloadmitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.tar.gz
mitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.tar.bz2
mitmproxy-0ca1916f1bb8728af3289f5fe975951af97f4ffa.zip
Fix host extraction
Diffstat (limited to 'examples')
-rw-r--r--examples/complex/dns_spoofing.py2
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"))