From ac9602e798b2f4596605db0e9536413610eec198 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Fri, 28 Jul 2017 14:53:21 +0200 Subject: [PATCH] agent: unix sockets are not ip addrs --- agent/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/config.go b/agent/config.go index 51d689907b..f9cdf0684c 100644 --- a/agent/config.go +++ b/agent/config.go @@ -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