diff --git a/pkg/service/connect_service.go b/pkg/service/connect_service.go index 5c7ee9f8e..fe0f98ffa 100644 --- a/pkg/service/connect_service.go +++ b/pkg/service/connect_service.go @@ -78,7 +78,7 @@ func (s *ConnectService) setupServer() (net.Listener, error) { if s.ConnectServiceConfiguration.ServerSocketPath != "" { lis, err = net.Listen("unix", s.ConnectServiceConfiguration.ServerSocketPath) } else { - address := net.JoinHostPort("localhost", fmt.Sprintf("%d", s.ConnectServiceConfiguration.Port)) + address := fmt.Sprintf(":%d", s.ConnectServiceConfiguration.Port) lis, err = net.Listen("tcp", address) } if err != nil {