Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/server-startup-msg.go

    	// first endpoint as default.
    	printCLIAccessMsg(strippedAPIEndpoints[0], "myminio")
    
    	// Prints documentation message.
    	printObjectAPIMsg()
    }
    
    // Returns true if input is IPv6
    func isIPv6(host string) bool {
    	h, _, err := net.SplitHostPort(host)
    	if err != nil {
    		h = host
    	}
    	ip := net.ParseIP(h)
    	return ip.To16() != nil && ip.To4() == nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top