diff --git a/plugins/proxy/proxy.go b/plugins/proxy/proxy.go index 522241d08..477e4be9d 100644 --- a/plugins/proxy/proxy.go +++ b/plugins/proxy/proxy.go @@ -141,7 +141,7 @@ func setProxyPorts(appName string, proxyPortMap []PortMap) error { } func removeProxyPorts(appName string, proxyPortMap []PortMap) error { - var toRemove map[string]bool + toRemove := map[string]bool{} for _, portMap := range proxyPortMap { toRemove[portMap.String()] = true @@ -197,7 +197,7 @@ func parseProxyPortMapString(stringPortMap string) []PortMap { func uniqueProxyPortMap(proxyPortMap []PortMap) []PortMap { var unique []PortMap - var existingPortMaps map[string]bool + existingPortMaps := map[string]bool{} for _, portMap := range proxyPortMap { if existingPortMaps[portMap.String()] {