diff --git a/cmd/crc/cmd/daemon.go b/cmd/crc/cmd/daemon.go index 1c3826a219..2e61561052 100644 --- a/cmd/crc/cmd/daemon.go +++ b/cmd/crc/cmd/daemon.go @@ -155,7 +155,7 @@ func run(configuration *types.Configuration) error { } }() - ln, err := vn.Listen("tcp", fmt.Sprintf("%s:80", configuration.GatewayIP)) + ln, err := vn.Listen("tcp", net.JoinHostPort(configuration.GatewayIP, "80")) if err != nil { return err } @@ -171,7 +171,7 @@ func run(configuration *types.Configuration) error { } }() - networkListener, err := vn.Listen("tcp", fmt.Sprintf("%s:80", hostVirtualIP)) + networkListener, err := vn.Listen("tcp", net.JoinHostPort(hostVirtualIP, "80")) if err != nil { return err }