portmapper: minor linting fix, and comment purpose of newProxy variable
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4231dbca23
commit
f6be7f2945
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ type mapping struct {
|
|||
container net.Addr
|
||||
}
|
||||
|
||||
// newProxy is used to mock out the proxy server in tests
|
||||
var newProxy = newProxyCommand
|
||||
|
||||
var (
|
||||
|
@ -214,7 +215,7 @@ func (pm *PortMapper) Unmap(host net.Addr) error {
|
|||
return ErrUnknownBackendAddressType
|
||||
}
|
||||
|
||||
//ReMapAll will re-apply all port mappings
|
||||
// ReMapAll re-applies all port mappings
|
||||
func (pm *PortMapper) ReMapAll() {
|
||||
pm.lock.Lock()
|
||||
defer pm.lock.Unlock()
|
||||
|
|
Loading…
Reference in a new issue