🐛 Move HubConfig and FrontConfig to TapConfig and add --front-proxy-port, --hub-proxy-port

This commit is contained in:
M. Mert Yildiran
2022-12-26 07:47:26 +03:00
parent 57257025d2
commit 034a540530
9 changed files with 49 additions and 65 deletions

View File

@@ -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 {