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