mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-05 20:42:46 +00:00
🐛 Move HubConfig
and FrontConfig
to TapConfig
and add --front-proxy-port
, --hub-proxy-port
This commit is contained in:
@@ -28,7 +28,7 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
Config = ConfigStruct{}
|
||||
Config ConfigStruct
|
||||
DebugMode bool
|
||||
cmdName string
|
||||
)
|
||||
@@ -50,19 +50,7 @@ func InitConfig(cmd *cobra.Command) error {
|
||||
|
||||
go version.CheckNewerVersion()
|
||||
|
||||
Config.Hub = HubConfig{
|
||||
PortForward{
|
||||
8898,
|
||||
80,
|
||||
},
|
||||
}
|
||||
|
||||
Config.Front = FrontConfig{
|
||||
PortForward{
|
||||
8899,
|
||||
80,
|
||||
},
|
||||
}
|
||||
Config = CreateDefaultConfig()
|
||||
cmdName = cmd.Name()
|
||||
|
||||
if err := defaults.Set(&Config); err != nil {
|
||||
|
Reference in New Issue
Block a user