[proxy] refactor weaveCIDRsFromConfig slightly
This commit is contained in:
1 parent
ca681bce13
commit
6c26a55b5a
5 files changed
+16
-16
No files matched your search
@@ -21,7 +21,7 @@ func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
||||
return err
|
||||
}
|
||||
|
||||
cidrs, ok := weaveCIDRsFromConfig(container.Config, i.proxy.NoDefaultIPAM)
|
||||
cidrs, ok := i.proxy.weaveCIDRsFromConfig(container.Config)
|
||||
if !ok {
|
||||
Debug.Print("No Weave CIDR, ignoring")
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user