[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [chutney/master] When testing traffic, bind to 127.0.0.1 rather than localhost.
commit c987c77d183b462c3b960039abca020ad43b5133
Author: Linus Nordberg <linus@xxxxxxxxxxxxxx>
Date: Wed Jun 5 15:48:57 2013 +0200
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.
---
lib/chutney/TorNet.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits