diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 947fd1a8..09d61994 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -211,10 +211,6 @@ func main() { mflag.StringVar(&pluginConfig.MeshSocket, []string{"-plugin-mesh-socket"}, "/run/docker/plugins/weavemesh.sock", "plugin socket on which to listen in mesh mode") proxyConfig := newProxyConfig(version, defaultDockerHost) - if bridgeConfig.AWSVPC { - proxyConfig.NoMulticastRoute = true - proxyConfig.KeepTXOn = true - } // crude way of detecting that we probably have been started in a // container, with `weave launch` --> suppress misleading paths in @@ -231,6 +227,11 @@ func main() { os.Exit(0) } + if bridgeConfig.AWSVPC { + proxyConfig.NoMulticastRoute = true + proxyConfig.KeepTXOn = true + } + peers = mflag.Args() if resume && len(peers) > 0 { Log.Fatalf("You must not specify an initial peer list in conjunction with --resume")