From 31f1a00b6fd03c6a0abb0bb9b72bfbd46c128020 Mon Sep 17 00:00:00 2001 From: Lordran Date: Fri, 7 Jan 2022 00:52:07 +0800 Subject: [PATCH] Fix a typo: advertise-up -> advertise-ip (#4827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胥朝阳 --- pkg/cli/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/server/server.go b/pkg/cli/server/server.go index 6d10af4a5e..feb0ca29d8 100644 --- a/pkg/cli/server/server.go +++ b/pkg/cli/server/server.go @@ -238,7 +238,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont 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 { serverConfig.ControlConfig.AdvertiseIP, _ = util.GetFirst4String(cmds.AgentConfig.NodeIP) }