• mwnx's avatar
    Fully implement ip6zone support · a1defdc5
    mwnx authored
    - Add `FromIPAndZone` function (complementing the `FromIP` function).
    - Handle zones when parsing `net.Addr`s.
    - In `DialArgs`, return an error if an `ip6zone` is prefixed to an `ip4`
      or to another `ip6zone`.
    
    Note: I was not able to add a listen test (in TestListenAddrs) for
    `/zone/.../ip6/...` since there is no link-local address which is
    guaranteed to exist on all systems.
    a1defdc5
ip.go 2.69 KB