Updated with PR review comments.

This commit is contained in:
cameronts
2022-07-29 12:10:42 -07:00
parent 3dcce87868
commit 3f0f2c88ca
2 changed files with 5 additions and 3 deletions

View File

@@ -97,10 +97,11 @@ func startGoRoutines(wg *sync.WaitGroup) context.CancelFunc {
if err := wireguard.ApplyConf(&cfg.Node, cfg.Node.Interface, ncutils.GetNetclientPathSpecific()+cfg.Node.Interface+".conf"); err != nil {
logger.Log(0, "failed to start ", cfg.Node.Interface, "wg interface", err.Error())
}
server := cfg.Server.Server
if cfg.PublicIPService != "" {
global_settings.PublicIPServices[server] = cfg.PublicIPService
global_settings.PublicIPServices[network] = cfg.PublicIPService
}
server := cfg.Server.Server
if !serverSet[server] {
// == subscribe to all nodes for each on machine ==
serverSet[server] = true