You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.Var(opts.NewIPOpt(&config.bridgeConfig.DefaultIP, "0.0.0.0"), []string{"#ip", "-ip"}, usageFn("Default IP when binding container ports"))
80
+
cmd.BoolVar(&config.bridgeConfig.EnableUserlandProxy, []string{"-userland-proxy"}, true, usageFn("Use userland proxy for loopback traffic"))
81
81
cmd.BoolVar(&config.EnableCors, []string{"#api-enable-cors", "#-api-enable-cors"}, false, usageFn("Enable CORS headers in the remote API, this is deprecated by --api-cors-header"))
82
82
cmd.StringVar(&config.CorsHeaders, []string{"-api-cors-header"}, "", usageFn("Set CORS headers in the remote API"))
83
83
cmd.StringVar(&config.CgroupParent, []string{"-cgroup-parent"}, "", usageFn("Set parent cgroup for all containers"))
@@ -575,9 +575,9 @@ func initBridgeDriver(controller libnetwork.NetworkController, config *Config) e
575
575
}
576
576
}
577
577
578
-
ifconfig.Bridge.IP!="" {
579
-
ipamV4Conf.PreferredPool=config.Bridge.IP
580
-
ip, _, err:=net.ParseCIDR(config.Bridge.IP)
578
+
ifconfig.bridgeConfig.IP!="" {
579
+
ipamV4Conf.PreferredPool=config.bridgeConfig.IP
580
+
ip, _, err:=net.ParseCIDR(config.bridgeConfig.IP)
581
581
iferr!=nil {
582
582
returnerr
583
583
}
@@ -586,22 +586,22 @@ func initBridgeDriver(controller libnetwork.NetworkController, config *Config) e
586
586
logrus.Infof("Default bridge (%s) is assigned with an IP address %s. Daemon option --bip can be used to set a preferred IP address", bridgeName, ipamV4Conf.PreferredPool)
0 commit comments