aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@torproject.org>2013-06-05 15:48:57 +0200
committerLinus Nordberg <linus@torproject.org>2013-06-18 12:37:40 +0200
commitc987c77d183b462c3b960039abca020ad43b5133 (patch)
treef7c67874b66c3247d0616144eda484bf97037e51 /lib
parentdfa4cd3a77ff5e5b3b2dfefff167efad3f546a8e (diff)
downloadchutney-c987c77d183b462c3b960039abca020ad43b5133.tar
chutney-c987c77d183b462c3b960039abca020ad43b5133.tar.gz
When testing traffic, bind to 127.0.0.1 rather than localhost.
Proxy handshake fails with 0x5b on FreeBSD. I've seen it on Debian too but never chased it down.
Diffstat (limited to 'lib')
-rw-r--r--lib/chutney/TorNet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index e79f0a8..4ebcc2d 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -641,7 +641,7 @@ class Network(object):
TIMEOUT = 3 # Seconds.
with open('/dev/urandom', 'r') as randfp:
tmpdata = randfp.read(DATALEN)
- bind_to = ('localhost', LISTEN_PORT)
+ bind_to = ('127.0.0.1', LISTEN_PORT)
tt = chutney.Traffic.TrafficTester(bind_to, tmpdata, TIMEOUT)
for op in filter(lambda n: n._env['tag'] == 'c', self._nodes):
tt.add(chutney.Traffic.Source(tt, bind_to, tmpdata,