Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getHostIP (0.06 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++
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top