Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_host_ip (0.26 sec)

  1. cmd/endpoint.go

    func (endpoints Endpoints) GetAllStrings() (all []string) {
    	for _, e := range endpoints {
    		all = append(all, e.String())
    	}
    	return
    }
    
    func hostResolveToLocalhost(endpoint Endpoint) bool {
    	hostIPs, err := getHostIP(endpoint.Hostname())
    	if err != nil {
    		return false
    	}
    	var loopback int
    	for _, hostIP := range hostIPs.ToSlice() {
    		if net.ParseIP(hostIP).IsLoopback() {
    			loopback++
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top