libnetwork/portmapper: remove unused PortMapper.checkIP
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
f5d6af13d0
commit
9c84994830
1 changed files with 0 additions and 6 deletions
|
@ -29,9 +29,3 @@ func (pm *PortMapper) AppendForwardingTableEntry(proto string, sourceIP net.IP,
|
|||
func (pm *PortMapper) DeleteForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// checkIP checks if IP is valid and matching to chain version
|
||||
func (pm *PortMapper) checkIP(ip net.IP) bool {
|
||||
// no IPv6 for port mapper on windows -> only IPv4 valid
|
||||
return ip.To4() != nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue