From de3e067b483514a705e9355295565178c9da9b05 Mon Sep 17 00:00:00 2001 From: CPunch Date: Fri, 23 Feb 2024 18:34:10 -0600 Subject: [PATCH] cnet/service: RandomPort no longer binds on 127.0.0.1 --- cnet/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnet/service.go b/cnet/service.go index 75f1540..94cc9c1 100644 --- a/cnet/service.go +++ b/cnet/service.go @@ -43,7 +43,7 @@ type Service struct { } func RandomPort() (int, error) { - l, err := net.Listen("tcp", "127.0.0.1:0") + l, err := net.Listen("tcp", ":0") if err != nil { return 0, err }