- 24 Oct, 2018 4 commits
-
-
Steven Allen authored
-
Steven Allen authored
make the Is* commands only check if addrs start with
-
Steven Allen authored
It turns out we *were* relying on this. Furthermore, this is generally more useful (especially given ip6zones).
-
Steven Allen authored
-
- 21 Oct, 2018 2 commits
-
-
vyzo authored
Add "ip6%" multiaddr support (IPv6 with zone ID)
-
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.
-
- 18 Oct, 2018 13 commits
-
-
Steven Allen authored
private networks and utility functions
-
Steven Allen authored
(would have failed with ValueForProtocol)
-
Steven Allen authored
This now means that addresses must *start* with the an IP address, we won't just pull one out of the middle.
-
vyzo authored
-
vyzo authored
-
vyzo authored
-
vyzo authored
-
vyzo authored
-
Steven Allen authored
use multiaddr parsers
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
This allows us to do less string-parsing.
-
- 17 Oct, 2018 2 commits
-
-
Steven Allen authored
1. Ensure we check the entire addr, not just a prefix. 2. Make the LinkLocal test skip zones. 3. Consider link-local multicast to be link-local. 4. Defer to *go* to determine if something is, in fact, a loopback/link-local address.
-
Steven Allen authored
-
- 01 Oct, 2018 3 commits
-
-
Steven Allen authored
fix loopback addresses
-
Steven Allen authored
-
Steven Allen authored
-
- 30 Sep, 2018 1 commit
-
-
Steven Allen authored
* fe80::1 is not a loopback address * ::ffff:127.* probably is (IPv4-mapped IPv6)
-
- 15 Sep, 2018 2 commits
-
-
Steven Allen authored
fix converting net.IPAddr to a multiaddr
-
Steven Allen authored
Unfortunately, the existing abstraction couldn't handle the fact that the "ip" net could parse to *either* an "/ip4/" or "/ip6/" multiaddr.
-
- 26 Jun, 2018 1 commit
-
-
Steven Allen authored
-
- 22 Jun, 2018 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
expose methods from underlying connection types
-
- 21 Jun, 2018 1 commit
-
-
Steven Allen authored
This sucks but I can't think of a better way to do this. We really do want to expose these features and doing so through type assertions is very go-like.
-
- 09 Jun, 2018 1 commit
-
-
Steven Allen authored
-
- 06 Jun, 2018 1 commit
-
-
Steven Allen authored
turn NetListener() method on listener interface into a helper method
-
- 10 Mar, 2018 1 commit
-
-
Steven Allen authored
-
- 08 Mar, 2018 6 commits
-
-
Steven Allen authored
-
Steven Allen authored
This method made implementing the manet.Listener interface annoying. Also, this lets us drop the "use with caution" warning as we're now *wrapping* the listener instead of exposing internal state.
-
Steven Allen authored
Make the IP loopback check faster
-
Steven Allen authored
Helps readers understand what they're looking at.
-
Steven Allen authored
-
Steven Allen authored
Decapsulate currently allocates a lot and this appears to have been causing some issues (hard to tell, pprof is misbehaving). Note: I removed the TODO as this function now *only* checks if we're dealing with a loopback address. Not sure what `OverIPLoopback` was supposed to mean. Note 2: Decapsulate actually checked if the IP6 loopback addresses appeared *anywhere* in the multiadder. However, as we weren't doing this for IP4, I decided to simplify this and only check prefixes.
-