Browse Source

call config complete in nathole discover (#3813)

fatedier 1 year ago
parent
commit
97d3cf1a3b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmd/frpc/sub/nathole.go

+ 1 - 0
cmd/frpc/sub/nathole.go

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