瀏覽代碼

fixed netclient join

afeiszli 3 年之前
父節點
當前提交
3acb53398f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      netclient/command/commands.go

+ 5 - 0
netclient/command/commands.go

@@ -58,6 +58,11 @@ func Join(cfg config.ClientConfig, privateKey string) error {
 	if cfg.Daemon != "off" {
 		err = daemon.InstallDaemon(cfg)
 	}
+	if ncutils.IsWindows() {
+		ncutils.PrintLog("setting up WireGuard app", 0)
+		time.Sleep(time.Second >> 1)
+		functions.Pull(cfg.Network, true)
+	}
 	return err
 }