160 Commits

Author SHA1 Message Date
Dominic Della Valle
2646b1d6f3 fix unescaped back-slash target 2019-09-28 16:18:46 -04:00
Steven Allen
611d2a4f64 address CR 2019-09-27 17:41:20 -07:00
Steven Allen
d66032c340 fix unix path handling on windows
* Convert to windows paths when converting from a multiaddr to a net.Addr
* Convert from windows paths when converting from a net.Addr to a multiaddr

Also, don't "clean". `filepath.Clean` is _usually_ correct but not _technically_
correct in all cases. We should leave cleaning to the application.
2019-09-19 08:59:17 -07:00
Steven Allen
1b2246d7be test: test unix addrs 2019-09-18 17:07:27 -07:00
Steven Allen
a5c136c974
Merge pull request #61 from multiformats/fix/global-multiaddr-registry
fix: use global multiaddr definitions
2019-09-18 17:01:31 -07:00
Steven Allen
de67c9ba29 remove gx support 2019-09-18 16:59:15 -07:00
Steven Allen
abe95b8d2e fix: use global multiaddr definitions
So we don't have to import a DNS resolver just to parse dns multiaddrs.
2019-09-18 16:53:12 -07:00
Steven Allen
60a59169e3
Merge pull request #59 from multiformats/fix/remove-gx
fix: remove gx support
2019-08-12 08:49:48 -07:00
Steven Allen
bd7c2ab520 fix: remove gx support 2019-08-12 08:47:55 -07:00
Steven Allen
082ac9ffc3
Merge pull request #58 from skillful-alex/fix-issue-57--Build-broken-after-36
resolve #57 "Build broken after #36"
2019-08-12 08:45:39 -07:00
skillful-alex
4d82298a97 remove unused var _ Conn = (*maConn)(nil) 2019-08-11 14:34:10 +03:00
Steven Allen
694239868b
Merge pull request #36 from multiformats/feat/udp
Make PacketConn more idiomatic and direct
2019-08-09 17:18:50 -07:00
Jakub Sztandera
bd61b0499a
Merge pull request #53 from multiformats/feat/gomod
Add go mod
2019-02-27 13:29:21 +01:00
Hector Sanjuan
02c82810b0
Merge pull request #54 from multiformats/gx/update-qtg73x
gx publish 1.7.2
2019-02-26 20:18:56 +00:00
Hector Sanjuan
d8ff19bf5f gx publish 1.7.2 2019-02-26 19:54:40 +00:00
Jakub Sztandera
32d315c3a1 Add go mod 2019-02-26 19:37:06 +01:00
Jakub Sztandera
c8d587e921
Merge pull request #52 from multiformats/fix/captain
README: remove out of date captain
2019-02-25 14:43:06 +01:00
Steven Allen
fe469eea48 README: remove out of date captain 2018-12-10 13:12:12 -08:00
Cole Brown
c75d1cac17 gx publish 1.7.1 2018-12-04 17:51:49 -05:00
Cole Brown
e5b3325eab Bump multiaddr dependencies 2018-12-04 17:51:34 -05:00
Cole Brown
7eb8e2dd26 gx publish 1.7.0 2018-12-04 17:45:58 -05:00
bigs
1879060a4f
Merge pull request #50 from multiformats/feat/unix-sockets
Add support for unix sockets
2018-12-04 10:31:14 -05:00
Cole Brown
a86fb2b318 Update docstring of DialArgs 2018-12-04 10:21:33 -05:00
Hector Sanjuan
0959afa0a5
Merge pull request #51 from multiformats/gx/1.6.7
gx publish 1.6.7
2018-12-03 18:28:24 +01:00
Hector Sanjuan
d925020f4e gx publish 1.6.7
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-03 18:26:38 +01:00
Cole Brown
f03b69ca9b Add support for unix sockets 2018-11-30 19:40:21 -05:00
Steven Allen
ef212b5194
Merge pull request #49 from multiformats/feat/support-dns-in-DialArgs
Feat: support hostnames in DialArgs() function
2018-11-29 20:08:02 -08:00
Hector Sanjuan
3504e962a0 Mention that we do not support unix* return values in DialArgs.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-28 16:17:16 +01:00
Hector Sanjuan
0bd5f16380 Feat: support hostnames in DialArgs() function
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-22 19:53:48 +01:00
Steven Allen
f0af403363 Merge branch 'gx/update-fzw9j3' 2018-11-02 16:06:54 -07:00
Steven Allen
f83281a88b gx publish 1.6.6 2018-11-02 15:54:36 -07:00
Steven Allen
5b127b903d gx publish 1.6.5 2018-10-24 09:18:40 -07:00
Steven Allen
e67650e7e3
Merge pull request #48 from multiformats/fix/is-ip-starts-with
make the Is* commands only check if addrs start with
2018-10-24 09:18:23 -07:00
Steven Allen
a7b912ae71 make the Is* commands only check if addrs start with
It turns out we *were* relying on this. Furthermore, this is generally more
useful (especially given ip6zones).
2018-10-24 09:09:25 -07:00
Steven Allen
4ae0494b14 gx publish 1.6.4 2018-10-24 08:57:56 -07:00
vyzo
86e5d145c9
Merge pull request #42 from mwnx/ip6z
Add "ip6%" multiaddr support (IPv6 with zone ID)
2018-10-21 17:56:03 +03:00
mwnx
a1defdc5aa Fully implement ip6zone support
- 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.
2018-10-21 14:46:38 +02:00
Steven Allen
3ce601caf3
Merge pull request #46 from multiformats/feat/private-net
private networks and utility functions
2018-10-18 14:15:32 +01:00
Steven Allen
115f321e21 test to make sure we only consider addresses that *start* with IP addresses
(would have failed with ValueForProtocol)
2018-10-18 14:00:36 +01:00
Steven Allen
0425819f0e use the new multiaddr utilities in IsPublicAddr/IsPrivateAddr
This now means that addresses must *start* with the an IP address, we won't just
pull one out of the middle.
2018-10-18 13:59:24 +01:00
vyzo
7b43167897 fix typo 2018-10-18 13:43:48 +01:00
vyzo
c2b139aab4 test all known unroutable address ranges in IsPublicAddr 2018-10-18 13:43:48 +01:00
vyzo
2945cfc2e6 add IsPrivateAddr 2018-10-18 13:43:48 +01:00
vyzo
49e7bdea20 add test 2018-10-18 13:43:48 +01:00
vyzo
984c8ac58b private networks and IsPublicAddr 2018-10-18 13:43:48 +01:00
Steven Allen
2503d99944
Merge pull request #47 from multiformats/feat/use-mulitaddr-parsers
use multiaddr parsers
2018-10-18 12:56:35 +01:00
Steven Allen
d2517ac772 gx: update go-multiaddr 2018-10-18 11:21:41 +01:00
Steven Allen
9be5ad695f test DialArgs changes 2018-10-18 11:18:58 +01:00
Steven Allen
50cc0e47d1 robust DialArgs 2018-10-18 11:14:05 +01:00
Steven Allen
5bd241dcaf use NewComponent in FromIP
This allows us to do less string-parsing.
2018-10-18 10:18:31 +01:00