瀏覽代碼

libnetwork/portmapper: remove unused PortMapper.checkIP

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 年之前
父節點
當前提交
9c84994830
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      libnetwork/portmapper/mapper_windows.go

+ 0 - 6
libnetwork/portmapper/mapper_windows.go

@@ -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
-}