Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sameLocalAddrs (0.21 sec)

  1. cmd/net.go

    		return (isLocalv4 || isLocalv6) && (port == localPort), nil
    	}
    	return isLocalv4 || isLocalv6, nil
    }
    
    // sameLocalAddrs - returns true if two addresses, even with different
    // formats, point to the same machine, e.g:
    //
    //	':9000' and 'http://localhost:9000/' will return true
    func sameLocalAddrs(addr1, addr2 string) (bool, error) {
    	// Extract host & port from given parameters
    	host1, port1, err := extractHostPort(addr1)
    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