mirror of https://github.com/hashicorp/consul
agent: unix sockets are not ip addrs
parent
2fcdb35cbb
commit
ac9602e798
|
@ -2137,6 +2137,10 @@ func (c *Config) ResolveTmplAddrs() (err error) {
|
|||
err = fmt.Errorf("Resolution of %s failed: %v", name, err)
|
||||
return
|
||||
}
|
||||
if strings.HasPrefix(ip, "unix://") {
|
||||
*addr = ip
|
||||
return
|
||||
}
|
||||
if net.ParseIP(ip) == nil {
|
||||
err = fmt.Errorf("Failed to parse %s: %v", name, ip)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue