소스 검색

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 년 전
부모
커밋
c987c77d18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,