()
| 7 | ) |
| 8 | |
| 9 | func (e *KubePiServer) localWebkubectlSessionURL() string { |
| 10 | host := strings.TrimSpace(e.config.Spec.Server.Bind.Host) |
| 11 | switch host { |
| 12 | case "", "0.0.0.0", "::", "[::]": |
| 13 | host = "127.0.0.1" |
| 14 | } |
| 15 | return "http://" + net.JoinHostPort(host, strconv.Itoa(e.config.Spec.Server.Bind.Port)) + "/kubepi/api/v1/webkubectl/session" |
| 16 | } |