1. 26 Feb, 2021 1 commit
  2. 20 May, 2020 1 commit
  3. 01 Dec, 2018 1 commit
  4. 24 Oct, 2018 1 commit
  5. 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
  6. 17 Oct, 2018 2 commits
    • 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
    • Steven Allen's avatar
      gx: update go-multiaddr · 3895ff18
      Steven Allen authored
      3895ff18
  7. 30 Sep, 2018 1 commit
  8. 21 Jun, 2018 1 commit
  9. 08 Mar, 2018 2 commits
  10. 04 Mar, 2018 1 commit
  11. 13 Aug, 2017 1 commit
  12. 24 Mar, 2017 1 commit
  13. 19 Sep, 2016 1 commit
  14. 10 Jun, 2016 1 commit
  15. 16 May, 2016 1 commit
  16. 27 Apr, 2016 1 commit
  17. 03 Oct, 2015 1 commit
  18. 19 Jun, 2015 1 commit
  19. 13 Jan, 2015 2 commits
  20. 12 Jan, 2015 1 commit
  21. 09 Jan, 2015 1 commit
  22. 20 Nov, 2014 3 commits
  23. 05 Nov, 2014 4 commits
  24. 11 Oct, 2014 4 commits
  25. 06 Oct, 2014 2 commits
    • Juan Batiz-Benet's avatar
      New Multiaddr interface · c90ef447
      Juan Batiz-Benet authored
      This commit changes the struct to a new Multiaddr interface:
      
      ```Go
      type Multiaddr interface {
        Equal(Multiaddr) bool
        Bytes() []byte
        String() string
        Protocols() []*Protocol
        Encapsulate(Multiaddr) Multiaddr
        Decapsulate(Multiaddr) Multiaddr
      }
      ```
      
      This means a few things have changed:
      
      - use Multiaddr interface, struct not exported
      - Bytes returns a copy of the internal bytes
      - Some methods no longer return errors (catch errors in NewMultiaddr)
        - String (panics if malformed)
        - Protocols (panics if malformed)
        - Decapsulate (no-op if not prefix)
      - Moved net-specific functions to package
        - Multiaddr.DialArgs() -> DialArgs(Multiaddr)
        - Multiaddr.IsThinWaist() -> IsThinWaist(Multiaddr)
      
      cc @whyrusleeping @perfmode
      c90ef447
    • Juan Batiz-Benet's avatar
      Multiaddr.String no error · bd30912d
      Juan Batiz-Benet authored
      The error in String should not actually ocurr, as the multiaddr
      should have been valid to be constructed successfully, and thus
      should be encoded back to its string rep correctly.
      
      This will be bolstered by creating an interface (to prevent messing
      with the internal bytes)
      bd30912d
  26. 13 Sep, 2014 1 commit