Avoid log wrong information until got PublicAddress

This commit is contained in:
ZhuPeng 2015-11-09 14:31:46 +08:00
parent 9fe755dea6
commit b94b1efdb0

View File

@ -408,6 +408,7 @@ func setDefaults(c *Config) {
glog.Fatalf("Unable to find suitable network address.error='%v' . "+
"Will try again in 5 seconds. Set the public address directly to avoid this wait.", err)
time.Sleep(5 * time.Second)
continue
}
c.PublicAddress = hostIP
glog.Infof("Will report %v as public IP address.", c.PublicAddress)