Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isValidEndpoint (0.14 sec)

  1. pkg/proxy/util/utils.go

    	IPv4ZeroCIDR = "0.0.0.0/0"
    
    	// IPv6ZeroCIDR is the CIDR block for the whole IPv6 address space
    	IPv6ZeroCIDR = "::/0"
    )
    
    // isValidEndpoint checks that the given host / port pair are valid endpoint
    func isValidEndpoint(host string, port int) bool {
    	return host != "" && port > 0
    }
    
    // IsZeroCIDR checks whether the input CIDR string is either
    // the IPv4 or IPv6 zero CIDR
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top