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 }