aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dns_spoofing.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-05-29 01:23:39 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-05-29 01:23:39 -0700
commit17382b963e22de8cb395a99e529b256e03d440ce (patch)
treebad14d80e1580995be2fc48780669bba747b8552 /examples/dns_spoofing.py
parent8638000cfa859ca2ae5fb39c58cbdf5e6fc10c19 (diff)
downloadmitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.tar.gz
mitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.tar.bz2
mitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.zip
format examples
Diffstat (limited to 'examples/dns_spoofing.py')
-rw-r--r--examples/dns_spoofing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/dns_spoofing.py b/examples/dns_spoofing.py
index 7eb79695..8d715f33 100644
--- a/examples/dns_spoofing.py
+++ b/examples/dns_spoofing.py
@@ -22,7 +22,6 @@ Usage:
"""
import re
-
# This regex extracts splits the host header into host and port.
# Handles the edge case of IPv6 addresses containing colons.
# https://bugzilla.mozilla.org/show_bug.cgi?id=45891
@@ -47,4 +46,4 @@ def request(context, flow):
port = int(m.group("port"))
flow.request.host = sni or host_header
- flow.request.port = port \ No newline at end of file
+ flow.request.port = port