浏览代码

bridge: fix error handling for stale default gateways

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
Petros Angelatos 7 年之前
父节点
当前提交
72eed906b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libnetwork/drivers/bridge/bridge.go

+ 1 - 1
libnetwork/drivers/bridge/bridge.go

@@ -598,7 +598,7 @@ func (d *driver) checkConflict(config *networkConfiguration) error {
 		nwConfig := nw.config
 		nw.Unlock()
 		if err := nwConfig.Conflicts(config); err != nil {
-			if config.DefaultBridge {
+			if nwConfig.DefaultBridge {
 				// We encountered and identified a stale default network
 				// We must delete it as libnetwork is the source of truth
 				// The default network being created must be the only one