Explorar o 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 %!s(int64=11) %!d(string=hai) anos
pai
achega
c987c77d18
Modificáronse 1 ficheiros con 1 adicións e 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,