Parcourir la source

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.
Linus Nordberg il y a 11 ans
Parent
commit
c987c77d18
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/chutney/TorNet.py

+ 1 - 1
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,