|
|
@ -238,7 +238,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont |
|
|
|
serverConfig.ControlConfig.AdvertiseIP, _ = util.GetFirst4String(cmds.AgentConfig.NodeExternalIP) |
|
|
|
serverConfig.ControlConfig.AdvertiseIP, _ = util.GetFirst4String(cmds.AgentConfig.NodeExternalIP) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if not set, try setting advertise-up from agent node-ip
|
|
|
|
// if not set, try setting advertise-ip from agent node-ip
|
|
|
|
if serverConfig.ControlConfig.AdvertiseIP == "" && len(cmds.AgentConfig.NodeIP) != 0 { |
|
|
|
if serverConfig.ControlConfig.AdvertiseIP == "" && len(cmds.AgentConfig.NodeIP) != 0 { |
|
|
|
serverConfig.ControlConfig.AdvertiseIP, _ = util.GetFirst4String(cmds.AgentConfig.NodeIP) |
|
|
|
serverConfig.ControlConfig.AdvertiseIP, _ = util.GetFirst4String(cmds.AgentConfig.NodeIP) |
|
|
|
} |
|
|
|
} |
|
|
|