mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
net: use localhost instead of IP for both sides of test setup
This commit is contained in:
parent
90eeb63809
commit
85e585161f
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class RetryServer:
|
|||
def run_fake_server(self):
|
||||
server_sock = socket.socket()
|
||||
server_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
server_sock.bind(('127.0.0.1', self.port))
|
||||
server_sock.bind(('localhost', self.port))
|
||||
server_sock.listen(5)
|
||||
server_sock.settimeout(5)
|
||||
time.sleep(0.001) # wait for it to start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue