mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-07 19:45:15 +00:00
🐛 Use tap
config for console
, pro
, proxy
and scripts
commands
This commit is contained in:
parent
e14bc8064b
commit
261df8261f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user