mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 13:04:13 +00:00
🐛 Use tap
config for console
, pro
, proxy
and scripts
commands
This commit is contained in:
@@ -58,6 +58,9 @@ func InitConfig(cmd *cobra.Command) error {
|
|||||||
|
|
||||||
Config = CreateDefaultConfig()
|
Config = CreateDefaultConfig()
|
||||||
cmdName = cmd.Name()
|
cmdName = cmd.Name()
|
||||||
|
if utils.Contains([]string{"console", "pro", "proxy", "scripts"}, cmdName) {
|
||||||
|
cmdName = "tap"
|
||||||
|
}
|
||||||
|
|
||||||
if err := defaults.Set(&Config); err != nil {
|
if err := defaults.Set(&Config); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user