Explorar o código

fixed netclient join

afeiszli %!s(int64=3) %!d(string=hai) anos
pai
achega
3acb53398f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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
 }