Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isLocalHost (0.08 sec)

  1. cmd/net.go

    			port = "80"
    		default:
    			return "", "", errors.New("unable to guess port from scheme")
    		}
    	}
    
    	return host, port, nil
    }
    
    // isLocalHost - checks if the given parameter
    // correspond to one of the local IP of the
    // current machine
    func isLocalHost(host string, port string, localPort string) (bool, error) {
    	hostIPs, err := getHostIP(host)
    	if err != nil {
    		return false, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top