🐛 Fix the issues in pro, console, proxy, config and scripts commands

This commit is contained in:
M. Mert Yildiran
2023-03-19 18:39:22 +03:00
parent abc506af1a
commit 0dac046f57
6 changed files with 15 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/rs/zerolog/log"
)
func runProxy(block bool) {
func runProxy(block bool, noBrowser bool) {
kubernetesProvider, err := getKubernetesProviderForCli()
if err != nil {
return
@@ -101,7 +101,7 @@ func runProxy(block bool) {
Int("port", int(config.Config.Tap.Proxy.Front.SrcPort)).
Msg("Found a running service.")
okToOpen("Kubeshark", frontUrl, false)
okToOpen("Kubeshark", frontUrl, noBrowser)
} else {
startProxyReportErrorIfAny(
kubernetesProvider,
@@ -120,7 +120,7 @@ func runProxy(block bool) {
}
establishedProxy = true
okToOpen("Kubeshark", frontUrl, false)
okToOpen("Kubeshark", frontUrl, noBrowser)
}
if establishedProxy && block {