Sfoglia il codice sorgente

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 11 anni fa
parent
commit
c987c77d18
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,