call config complete in nathole discover

This commit is contained in:
fatedier 2023-11-28 18:52:40 +08:00
parent 38f297a395
commit ab91bb6fc9

View File

@ -51,6 +51,7 @@ var natholeDiscoveryCmd = &cobra.Command{
cfg, _, _, _, err := config.LoadClientConfig(cfgFile, strictConfigMode)
if err != nil {
cfg = &v1.ClientCommonConfig{}
cfg.Complete()
}
if natHoleSTUNServer != "" {
cfg.NatHoleSTUNServer = natHoleSTUNServer