mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 19:50:36 +00:00
agent: unix sockets are not ip addrs
This commit is contained in:
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…
x
Reference in New Issue
Block a user