idk
4619045f0d
finish switching to base64 addresses for garlic-routed requests. This is so we can have both the base64 and base32 keys.
2018-11-26 05:03:37 -05:00
idk
54ddf83b00
Switch to using base64 i2p addresses to facilitate transport
2018-11-26 05:03:37 -05:00
idk
58c18c3ad6
Switch to using base64 i2p addresses to facilitate transport
2018-11-25 15:27:27 -05: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
idk
cf7ed7c1ad
created onionv3 and garlic multiaddrs
2018-11-15 04:11:07 -05:00
Steven Allen
f0af403363
Merge branch 'gx/update-fzw9j3'
2018-11-02 16:06:54 -07:00
Steven Allen
ec8630b6b7
Merge branch 'gx/update-fzw9j3'
2018-11-02 16:06:47 -07:00
Steven Allen
f83281a88b
gx publish 1.6.6
2018-11-02 15:54:36 -07:00
Steven Allen
8dc8c4a64c
gx publish 1.3.6
2018-11-02 15:54:33 -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
393301199b
gx publish 1.3.5
2018-10-18 11:19:28 +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
d237243b4a
Merge pull request #84 from multiformats/fix/shortcut-split-component
...
shortcut split on components
2018-10-18 10:43:51 +01:00
Steven Allen
faf8963c9a
fix zone validator
...
(bug caught by fuzzer)
2018-10-18 10:35:11 +01:00
Steven Allen
877fe6538c
shortcut split on components
...
Instead of re-parsing single-components, shortcut split/for-each functions.
2018-10-18 10:32:13 +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
Steven Allen
03e871bdbe
fix loopback/link-local checks
...
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.
2018-10-17 22:01:57 +01:00
Steven Allen
3895ff188b
gx: update go-multiaddr
2018-10-17 22:01:47 +01:00
Steven Allen
dda950c1d3
gx publish 1.3.4
2018-10-16 16:57:21 +01:00
Steven Allen
021d073ecd
Merge branch 'feat/component'
2018-10-16 16:57:14 +01:00
Steven Allen
fa28600751
gx publish 1.3.3
2018-10-16 16:50:53 +01:00
Steven Allen
42326a8c13
Merge pull request #79 from multiformats/nit/cleanup
...
small cleanups and optimizations
2018-10-16 16:38:27 +01:00
Steven Allen
c8d6befb43
add more split tools and a bunch of tests
2018-10-02 14:26:34 -07:00
Steven Allen
96897075ba
fix path test
...
Opinionated: Paths should start with /, dammit!
2018-10-01 22:05:11 -07:00
Steven Allen
58bcbc8e51
add component/foreach helpers
...
This adds a `Component` helper type and a `ForEach` helper method.
The first attempt used an interface but interfaces imply allocation. We really
can't afford to allocate here.
2018-10-01 21:18:11 -07:00
Steven Allen
7989a080af
don't put the buffer struct on the heap
...
This showed up when profile go-ipfs.
2018-10-01 17:10:03 -07:00
Steven Allen
2e9c819c18
make cast use NewMultiaddrBytes
...
This will perform all the correct checks *except* that it won't bother actually
stringifying the multiaddr. It should be significantly faster.
2018-10-01 16:57:15 -07:00
Steven Allen
6c70a3d7b5
remove protocol correctness test
...
This is checked when the protocol is *registered*. There's no reason to test it
twice.
2018-10-01 16:56:58 -07:00
Steven Allen
2999d4efba
small Join optimizations
2018-10-01 16:56:58 -07:00
Steven Allen
0f158f1163
nit: mark test helper
2018-10-01 16:56:58 -07:00
Steven Allen
61e31ed48b
stop copying when calling Bytes
...
This is a huge performance hit. Really, we just need to tell users not to modify
the result.
Also, get rid of an unnecessary pointer indirection (no api change).
2018-10-01 16:56:57 -07:00
Steven Allen
fe1c46f8be
gx publish 1.3.2
2018-09-30 18:12:25 -07:00
Steven Allen
1cb9a0e8a6
Merge pull request #40 from multiformats/fix/39
...
fix loopback addresses
2018-10-01 00:38:29 +00:00
Steven Allen
5d0dbe0fb9
fix IsIPLoopback comment
2018-09-30 17:16:44 -07:00