INNER CODE UNIT · Go

healthCheckAddress

kgateway-dev/kgateway · cmd/sds/main.go:50

func healthCheckAddress(env string) string {
	if env == "" {
		env = defaultSDSAddress
	}
	_, port, err := net.SplitHostPort(env)
	if err != nil {
		// Not host:port (e.g. just a port or malformed); fall back to default port.
		_, port, _ = net.SplitHostPort(defaultSDSAddress)
	}
	return net.JoinHostPort("127.0.0.1", port)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…