mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Removing IPv4 enforcement on Endpoints
Signed-off-by: André Martins <aanm90@gmail.com>
This commit is contained in:
		@@ -155,9 +155,9 @@ func IsValidPortName(port string) bool {
 | 
			
		||||
	return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsValidIPv4 tests that the argument is a valid IPv4 address.
 | 
			
		||||
func IsValidIPv4(value string) bool {
 | 
			
		||||
	return net.ParseIP(value) != nil && net.ParseIP(value).To4() != nil
 | 
			
		||||
// IsValidIP tests that the argument is a valid IP address.
 | 
			
		||||
func IsValidIP(value string) bool {
 | 
			
		||||
	return net.ParseIP(value) != nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const percentFmt string = "[0-9]+%"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user