Skip to content

Commit 0a67ba3

Browse files
authored
changed 'localhost' to '127.0.0.1'
1 parent 010a2c2 commit 0a67ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytest_rerunfailures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _sock_send(self, conn, msg: str):
429429
class ServerStatusDB(SocketDB):
430430
def __init__(self):
431431
super().__init__()
432-
self.sock.bind(("localhost", 0))
432+
self.sock.bind(("127.0.0.1", 0))
433433
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
434434

435435
self.rerunfailures_db = {}
@@ -471,7 +471,7 @@ def _get(self, i: str, k: str) -> int:
471471
class ClientStatusDB(SocketDB):
472472
def __init__(self, sock_port):
473473
super().__init__()
474-
self.sock.connect(("localhost", sock_port))
474+
self.sock.connect(("127.0.0.1", sock_port))
475475

476476
def _set(self, i: str, k: str, v: int):
477477
self._sock_send(self.sock, "|".join(("set", i, k, str(v))))

0 commit comments

Comments
 (0)