From fc2e2927b7b7bca5d63017a431d036db2a485cf9 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 20 Jan 2014 15:17:12 -1000 Subject: [PATCH] Accept command line advertise addr --- command/agent/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/agent/command.go b/command/agent/command.go index 73a66514d..3eb171d6c 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -53,6 +53,7 @@ func (c *Command) readConfig() *Config { cmdFlags.StringVar(&cmdConfig.DataDir, "data", "", "path to the data directory") cmdFlags.StringVar(&cmdConfig.Datacenter, "dc", "", "node datacenter") cmdFlags.StringVar(&cmdConfig.DNSRecursor, "recursor", "", "address of dns recursor") + cmdFlags.StringVar(&cmdConfig.AdvertiseAddr, "advertise", "", "advertise address to use") cmdFlags.BoolVar(&cmdConfig.Server, "server", false, "run agent as server") cmdFlags.BoolVar(&cmdConfig.Bootstrap, "bootstrap", false, "enable server bootstrap mode") if err := cmdFlags.Parse(c.args); err != nil {