Browse Source

portmapper: change userlandProxyCommandName to a const

it's not overridden anywhere, so may as well be a const

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 4 years ago
parent
commit
ac8c80d6f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/portmapper/proxy_linux.go

+ 1 - 1
libnetwork/portmapper/proxy_linux.go

@@ -11,7 +11,7 @@ import (
 	"time"
 )
 
-var userlandProxyCommandName = "docker-proxy"
+const userlandProxyCommandName = "docker-proxy"
 
 func newProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int, proxyPath string) (userlandProxy, error) {
 	path := proxyPath