diff --git a/proxy/proxy.go b/proxy/proxy.go index 54bedc65..54ad8202 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -611,10 +611,10 @@ func (proxy *Proxy) symlink(unixAddrs []string) (err error) { binds := []string{"/var/run/weave:/var/run/weave"} froms := []string{} for _, addr := range unixAddrs { - if addr == weaveSockUnix { + from := strings.TrimPrefix(addr, "unix://") + if from == weaveSock { continue } - from := strings.TrimPrefix(addr, "unix://") dir := filepath.Dir(from) binds = append(binds, dir+":"+filepath.Join("/host", dir)) froms = append(froms, filepath.Join("/host", from))