aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dns_spoofing.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dns_spoofing.py')
-rw-r--r--examples/dns_spoofing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dns_spoofing.py b/examples/dns_spoofing.py
index 98495d45..7eb79695 100644
--- a/examples/dns_spoofing.py
+++ b/examples/dns_spoofing.py
@@ -39,7 +39,7 @@ def request(context, flow):
sni = None
port = 80
- host_header = flow.request.pretty_host(hostheader=True)
+ host_header = flow.request.pretty_host
m = parse_host_header.match(host_header)
if m:
host_header = m.group("host").strip("[]")