• Fazlul Shahriar's avatar
    net: fix multicast and IPv6 related issues on Plan 9 · e94475ea
    Fazlul Shahriar authored
    Fix issues that make these tests pass:
    - TestDialerLocalAddr: return error if local address is not IPv4 for
    "tcp4" network.
    - TestInterfaceAddrs, TestInterfaceUnicastAddrs: don't assume each
    interface has only one address. It may have more than one or none.
    - TestConcurrentPreferGoResolversDial: should be skipped on Plan 9.
    - TestListenMulticastUDP: remove IP from `announce` command and don't
    mix IPv4 address with IPv6 address in `addmulti` command.
    
    Fixes #34931
    
    Change-Id: Ie0fdfe19ea282e5d6d6c938bf3c9139f8f5b0308
    Reviewed-on: https://go-review.googlesource.com/c/go/+/201397
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    e94475ea
interface_plan9.go 4.59 KB