parent
05fb247a56
commit
ff2aae98f4
|
@ -387,7 +387,7 @@ func (b *Builder) Build() (rt RuntimeConfig, err error) {
|
||||||
return RuntimeConfig{}, fmt.Errorf("No %s address found", addrtyp)
|
return RuntimeConfig{}, fmt.Errorf("No %s address found", addrtyp)
|
||||||
}
|
}
|
||||||
if len(advertiseAddrs) > 1 {
|
if len(advertiseAddrs) > 1 {
|
||||||
return RuntimeConfig{}, fmt.Errorf("Multiple %s addresses found. Please configure one", addrtyp)
|
return RuntimeConfig{}, fmt.Errorf("Multiple %s addresses found. Please configure one with 'bind' and/or 'advertise'.", addrtyp)
|
||||||
}
|
}
|
||||||
advertiseAddr = advertiseAddrs[0]
|
advertiseAddr = advertiseAddrs[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue