1. 10 Jul, 2023 1 commit
  2. 03 Jul, 2023 1 commit
  3. 21 Dec, 2021 2 commits
  4. 14 Dec, 2021 1 commit
  5. 20 May, 2020 1 commit
  6. 24 Oct, 2018 1 commit
  7. 21 Oct, 2018 1 commit
    • 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
  8. 17 Oct, 2018 1 commit
    • Steven Allen's avatar
      fix loopback/link-local checks · 03e871bd
      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.
      03e871bd
  9. 01 Oct, 2018 1 commit
  10. 30 Sep, 2018 1 commit
  11. 08 Mar, 2018 2 commits
    • Steven Allen's avatar
      rename, comment, and move loopback prefixes · ef7ebf9d
      Steven Allen authored
      Helps readers understand what they're looking at.
      ef7ebf9d
    • Steven Allen's avatar
      Make the IP loopback check faster · 9d1c543b
      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.
      9d1c543b
  12. 26 Mar, 2017 1 commit
    • Jack Kleeman's avatar
      Check for local ip6 addresses with more flexbility · ee4ab587
      Jack Kleeman authored
      Currently IsIPLoopback returns true for any multiaddr starting ip4/127, but only returns true on ip6 addresses that exactly equal ip6/::1. So /ip6/::1/tcp/4001 for example does not return true. Instead we should check whether ip6/::1 is contained in the multiaddr, and to do that I simply decapsulated and checked to see if the result is different. It seems this was not caught by tests as none are present specifically for this function.
      ee4ab587
  13. 17 Mar, 2017 1 commit
  14. 19 Sep, 2016 1 commit
  15. 27 Apr, 2016 1 commit
  16. 20 Jan, 2015 1 commit
  17. 12 Jan, 2015 2 commits
  18. 11 Jan, 2015 1 commit
  19. 20 Nov, 2014 1 commit
  20. 05 Nov, 2014 1 commit