31 Commits

Author SHA1 Message Date
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
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
Cole Brown
a86fb2b318 Update docstring of DialArgs 2018-12-04 10:21:33 -05:00
Cole Brown
f03b69ca9b Add support for unix sockets 2018-11-30 19:40:21 -05: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
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
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
Hector Sanjuan
1c4b9a62de README/docs: Improved README, make golint happy
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-03-17 15:36:06 +01:00
jbenet
4cc9fd0c58 go-multiaddr is now at multiformats org 2016-09-19 10:30:07 +08:00
Jeromy
ff394cdaae extract out yamux code in favor of modularity 2016-06-10 15:33:31 -07:00
Jeromy
b730d261ac refactor globals 2016-05-14 18:02:25 -07:00
Jeromy
79cf06be20 move addspec definitions and add test for RegisterAddressType 2016-05-06 09:14:27 -07:00
Jeromy
48f060edf7 refactor to use AddressSpec objects 2016-05-04 14:09:13 -07:00
Jeromy
1263064416 clean up parser registry 2016-05-03 13:23:57 -07:00
Jeromy
347065ffd7 make multiaddr-net more pluggable 2016-05-02 16:30:02 -07:00
Jeromy
4d7e08bab8 move deps from godep to gx 2016-04-26 17:11:49 -07:00
Jeromy
74e0b7e97c return error if passed nil net.Addr 2015-10-09 11:50:23 -07:00
Jeromy
cacd78eadc add utp to multiaddr-net 2015-10-03 16:40:21 -07:00
Henry
4e467c67d1 updated godeps
small api change from utp (removed stutter)
2015-02-25 13:54:24 +01:00
Juan Batiz-Benet
97da87cf8f test ip6 conversion 2015-01-12 18:26:34 -08:00
Juan Batiz-Benet
b6265d8119 bugfix: Listen always return err. test it 2014-11-20 05:09:46 -08:00
Juan Batiz-Benet
625fac6e50 update imports to point to vendored repos 2014-11-20 00:55:05 -08:00
Juan Batiz-Benet
ae3b067850 added utp support to net/ 2014-11-19 13:24:03 -08:00
Juan Batiz-Benet
107f2157f4 IP unspecified addrs 2014-11-05 02:06:28 -08:00
Juan Batiz-Benet
2bea5f93a2 added ipv6 link-local loopback 2014-11-05 01:47:02 -08:00
Juan Batiz-Benet
fb33680d08 net: added InterfaceMultiaddrs 2014-11-05 00:38:21 -08:00
Juan Batiz-Benet
5d64ba1250 Cast and Loopback 2014-11-05 00:04:30 -08:00
Juan Batiz-Benet
dc978d4bc3 moved net stuff into subpkg 2014-10-11 00:50:55 -07:00