mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-30 22:52:44 +08:00
Move public IP services handling to a map-based approach to work for daemon (multiple network configs) and CLI-based setting of the IP services.
This commit is contained in:
@@ -97,6 +97,9 @@ func startGoRoutines(wg *sync.WaitGroup) context.CancelFunc {
|
||||
logger.Log(0, "failed to start ", cfg.Node.Interface, "wg interface", err.Error())
|
||||
}
|
||||
server := cfg.Server.Server
|
||||
if cfg.PublicIPService != "" {
|
||||
config.PublicIPServices[server] = cfg.PublicIPService
|
||||
}
|
||||
if !serverSet[server] {
|
||||
// == subscribe to all nodes for each on machine ==
|
||||
serverSet[server] = true
|
||||
|
Reference in New Issue
Block a user