summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/tcp_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/bpf/tcp_server.py')
-rwxr-xr-xtools/testing/selftests/bpf/tcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/tcp_server.py b/tools/testing/selftests/bpf/tcp_server.py
index 0ca60d193bed..42ab8882f00f 100755
--- a/tools/testing/selftests/bpf/tcp_server.py
+++ b/tools/testing/selftests/bpf/tcp_server.py
@@ -38,7 +38,7 @@ serverSocket = None
# create passive socket
serverSocket = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
-try: serverSocket.bind(('localhost', 0))
+try: serverSocket.bind(('::1', 0))
except socket.error as msg:
print('bind fails: ' + str(msg))