mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-10 21:02:21 +00:00
Fixed a bug in the console
command, where the CLI couldn't connect to Hub as when
the `url.URL` method was used, the Host included a path
This commit is contained in:
parent
fc0ec5a840
commit
e800d67e27
@ -55,8 +55,8 @@ func runConsole() {
|
|||||||
log.Info().Str("host", config.Config.Tap.Proxy.Host).Str("url", hubUrl).Msg("Connecting to:")
|
log.Info().Str("host", config.Config.Tap.Proxy.Host).Str("url", hubUrl).Msg("Connecting to:")
|
||||||
u := url.URL{
|
u := url.URL{
|
||||||
Scheme: "ws",
|
Scheme: "ws",
|
||||||
Host: fmt.Sprintf("%s:%d/api", config.Config.Tap.Proxy.Host, config.Config.Tap.Proxy.Front.Port),
|
Host: fmt.Sprintf("%s:%d", config.Config.Tap.Proxy.Host, config.Config.Tap.Proxy.Front.Port),
|
||||||
Path: "/scripts/logs",
|
Path: "/api/scripts/logs",
|
||||||
}
|
}
|
||||||
headers := http.Header{}
|
headers := http.Header{}
|
||||||
headers.Set(utils.X_KUBESHARK_CAPTURE_HEADER_KEY, utils.X_KUBESHARK_CAPTURE_HEADER_IGNORE_VALUE)
|
headers.Set(utils.X_KUBESHARK_CAPTURE_HEADER_KEY, utils.X_KUBESHARK_CAPTURE_HEADER_IGNORE_VALUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user