Fixed the double action for commands: console and scripts, when running the proxyRunner

This commit is contained in:
Alon Girmonsky 2024-10-25 12:40:06 -07:00
parent 6a890e6653
commit 994307f45c

View File

@ -92,13 +92,6 @@ func runProxy(block bool, noBrowser bool) {
establishedProxy = true
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 {
utils.WaitForTermination(ctx, cancel)
}