diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 0bdb6c3a..947fd1a8 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -210,7 +210,7 @@ func main() { mflag.StringVar(&pluginConfig.Socket, []string{"-plugin-socket"}, "/run/docker/plugins/weave.sock", "plugin socket on which to listen") mflag.StringVar(&pluginConfig.MeshSocket, []string{"-plugin-mesh-socket"}, "/run/docker/plugins/weavemesh.sock", "plugin socket on which to listen in mesh mode") - proxyConfig := configureProxy(version, defaultDockerHost) + proxyConfig := newProxyConfig(version, defaultDockerHost) if bridgeConfig.AWSVPC { proxyConfig.NoMulticastRoute = true proxyConfig.KeepTXOn = true @@ -525,7 +525,7 @@ func (nopPacketLogging) LogPacket(string, weave.PacketKey) { func (nopPacketLogging) LogForwardPacket(string, weave.ForwardPacketKey) { } -func configureProxy(version string, defaultDockerHost string) *weaveproxy.Config { +func newProxyConfig(version string, defaultDockerHost string) *weaveproxy.Config { proxyConfig := weaveproxy.Config{ Version: version, Image: getenvOrDefault("EXEC_IMAGE", "weaveworks/weaveexec"),