commit
d4de48aeee
1 file changed
+2
-2
+2
-2
@@ -623,10 +623,10 @@ func (proxy *Proxy) symlink(unixAddrs []string) (err error) {
|
|||||||
binds := []string{"/var/run/weave:/var/run/weave"}
|
binds := []string{"/var/run/weave:/var/run/weave"}
|
||||||
froms := []string{}
|
froms := []string{}
|
||||||
for _, addr := range unixAddrs {
|
for _, addr := range unixAddrs {
|
||||||
if addr == weaveSockUnix {
|
from := strings.TrimPrefix(addr, "unix://")
|
||||||
|
if from == weaveSock {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
from := strings.TrimPrefix(addr, "unix://")
|
|
||||||
dir := filepath.Dir(from)
|
dir := filepath.Dir(from)
|
||||||
binds = append(binds, dir+":"+filepath.Join("/host", dir))
|
binds = append(binds, dir+":"+filepath.Join("/host", dir))
|
||||||
froms = append(froms, filepath.Join("/host", from))
|
froms = append(froms, filepath.Join("/host", from))
|
||||||
|
|||||||
Reference in new issue
Block a user