Explorar el Código

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 hace 11 años
padre
commit
c987c77d18
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,