diff --git a/proxy/inspect_exec_interceptor.go b/proxy/inspect_exec_interceptor.go index 32e70940..7b5a2cf8 100644 --- a/proxy/inspect_exec_interceptor.go +++ b/proxy/inspect_exec_interceptor.go @@ -22,6 +22,10 @@ func (i *inspectExecInterceptor) InterceptResponse(r *http.Response) error { return err } + if _, ok := exec["Container"]; !ok { + return nil + } + container, err := exec.Object("Container") if err != nil { return err diff --git a/weave b/weave index 7e98cb51..7c99048a 100755 --- a/weave +++ b/weave @@ -1476,7 +1476,7 @@ proxy_args() { } proxy_addrs() { - if addr="$(http_call_unix $PROXY_CONTAINER_NAME status.sock GET /status 2>&1)" ; then + if addr="$(http_call_unix $PROXY_CONTAINER_NAME status.sock GET /status 2>/dev/null)" ; then echo "$addr" | sed "s/0.0.0.0/$PROXY_HOST/g" else