aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/test.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-02-08 22:42:27 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-02-08 22:42:27 +0100
commit0c04abb6e4c549646c06ef9e270d1b42c1ffaf1d (patch)
tree9824b52c89962be6e131e59ab170de5dd801ce0c /libpathod/test.py
parent505d3964952d0fa0779eda5c61a0456f4f2f6fb9 (diff)
downloadmitmproxy-0c04abb6e4c549646c06ef9e270d1b42c1ffaf1d.tar.gz
mitmproxy-0c04abb6e4c549646c06ef9e270d1b42c1ffaf1d.tar.bz2
mitmproxy-0c04abb6e4c549646c06ef9e270d1b42c1ffaf1d.zip
fix pathod main script
Diffstat (limited to 'libpathod/test.py')
-rw-r--r--libpathod/test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpathod/test.py b/libpathod/test.py
index 11c62303..398e94be 100644
--- a/libpathod/test.py
+++ b/libpathod/test.py
@@ -66,6 +66,7 @@ class Daemon:
class _PaThread(threading.Thread):
def __init__(self, iface, q, ssl, daemonargs):
threading.Thread.__init__(self)
+ self.name = "PathodThread"
self.iface, self.q, self.ssl = iface, q, ssl
self.daemonargs = daemonargs
@@ -75,5 +76,6 @@ class _PaThread(threading.Thread):
ssl = self.ssl,
**self.daemonargs
)
+ self.name = "PathodThread (%s:%s)" % (self.server.address.host, self.server.address.port)
self.q.put(self.server.address.port)
self.server.serve_forever()