mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-04 12:05:35 +00:00
Fixed the double action for commands: console and scripts, when running the proxyRunner
This commit is contained in:
@@ -92,13 +92,6 @@ func runProxy(block bool, noBrowser bool) {
|
|||||||
establishedProxy = true
|
establishedProxy = true
|
||||||
okToOpen("Kubeshark", frontUrl, noBrowser)
|
okToOpen("Kubeshark", frontUrl, noBrowser)
|
||||||
}
|
}
|
||||||
if config.Config.Scripting.Source != "" && config.Config.Scripting.WatchScripts {
|
|
||||||
watchScripts(kubernetesProvider, false)
|
|
||||||
}
|
|
||||||
|
|
||||||
if config.Config.Scripting.Console {
|
|
||||||
go runConsoleWithoutProxy()
|
|
||||||
}
|
|
||||||
if establishedProxy && block {
|
if establishedProxy && block {
|
||||||
utils.WaitForTermination(ctx, cancel)
|
utils.WaitForTermination(ctx, cancel)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user