Steven Allen
3617750071
better nat mapping
1. Update to work with https://github.com/libp2p/go-libp2p-nat/pull/14 .
2. Avoid observed addrs when our NAT tells us about external addrs.
3. Ignore bad addrs reported by our NAT. Substitute with observed addrs.
4. Fix https://github.com/libp2p/go-libp2p/issues/428 .
6 years ago
Jakub Sztandera
533d9866c6
gx publish 6.0.34
6 years ago
Matt Joiner
3b8d83ffdc
Resolve addrs with P2P instead of IPFS ( #539 )
6 years ago
iulianpascalau
b8e47c5dea
mock package:
- changed GetStreams function from mock_conn.go to call allStreams which has the same functionality but is concurrent safe
- changed protocol field from mock_stream to be concurrent safe. Taken the implementation from swarm_stream.go
6 years ago
vyzo
7fa37513fd
increase initial relay advertisement delay to 30s
6 years ago
vyzo
3a993345d0
use PeerRouting in autorelay to find relay peer addresses
6 years ago
vyzo
c5f50f9c2d
don't advertise the raw public address in autorelay
6 years ago
Steven Allen
758b516603
mock: export ratelimiter as RateLimiter
Technically a breaking change because I changed the constructor casing but
nobody's using this outside of libp2p (yet), mostly because the type hasn't been
exported.
6 years ago
vyzo
5d0a6e23ce
use select for initial advertisement delay
6 years ago
vyzo
a1b5b9ed53
explicit option to enable autorelay
6 years ago
Abhishek Upperwal
36a2645306
removing redundant if condition
6 years ago
Abhishek Upperwal
3ae2d75e46
added comments for clarity
6 years ago
Abhishek Upperwal
88d98287ff
suppressing error msg for NoSecurity option
6 years ago
vyzo
31eb77d446
add delay in initial relay advertisement to allow the dht time to bootstrap
6 years ago
Steven Allen
79ba610d21
mocknet: create a connection on NewStream if we need one
That's what the Swarm does and that's what the function's documentation says it
does.
6 years ago
Steven Allen
a8e25bf270
mocknet: refuse to connect to self
The swarm does this as well and most of our services will fail if we don't have
this.
6 years ago
Steven Allen
00ba6a165a
deflake identify test
This was probably failing (rarely) due to the fact that we're shrinking the
timeout asynchronously (I think?).
6 years ago
Steven Allen
f4229470cb
mocknet: use peer ID in peer address
RandLocalTCPAddress is mostly useful when we *actually* want to listen on a real
address. Unfortunately, when running a bunch of tests, we can actually run
out.
With this change, a collision means we have a duplicate peer ID so yeah...
fixes #473
6 years ago
vyzo
a309f09606
Add note to relay docs about internal interface instability
6 years ago
vyzo
5a1c09c4af
use advertised addrs for autonat dial back, not all addrs
6 years ago
vyzo
5d8988f3ee
add comment about the unstable nature of BasicHost.PushIdentify
6 years ago
vyzo
69144bd78b
extend autorelay test to verify pushing of relay addrs
also check that we don't initially advertise any.
6 years ago
vyzo
0dfca3ba5d
increase test AutoNATIdentifyDelay to 100ms
macosx seems to fail intermittently, and that race is the likely culprit.
6 years ago
vyzo
7b324b14b5
remove BasicRouting interface; use PeerRouting and upcast for discovery
6 years ago
vyzo
c2d846a7c3
fix go vet issue
6 years ago
vyzo
fdfa224699
document doUpdateAddrs
6 years ago
vyzo
4be7ada37b
tag relay connections
6 years ago
vyzo
e96605d1a3
use /p2p multiaddr
6 years ago
vyzo
84400e22f2
fix typo
6 years ago
vyzo
4f90393629
add a comment
6 years ago
vyzo
67aba4d501
move relay selection strategy out of line
6 years ago
vyzo
cc2dd22028
make randezvous key a constant
6 years ago
vyzo
2993fd9a68
add autorelay documentation
6 years ago
vyzo
a7e1bf0f15
call the routing interface BasicRouting, alias to top level type
6 years ago
vyzo
89aef893e6
don't adveretise unspecific relay addrs in RelayHost
6 years ago
vyzo
dcb8fd2813
fix inverted address selection logic in test
6 years ago
vyzo
ee69383c2c
extend autorelay test to verify connectivity
6 years ago
vyzo
b62c83bd5c
better limit adjustment for relay discovery
6 years ago
vyzo
f6c38c9d91
filter unspecific relay address
6 years ago
vyzo
c6d1eebf15
autorelay test
6 years ago
vyzo
7fabe39290
parallel identify push
6 years ago
vyzo
477c19aac1
reduce boot delay to 60s
6 years ago
vyzo
0ff7393349
fix announced relay address
6 years ago
vyzo
6bdfcac0b4
use AllAddrs as the address factory in autonat
6 years ago
vyzo
5c623f269f
name the autorelay logger as such
6 years ago
vyzo
9795a01ba3
configurable boot delay for autorelay
6 years ago
vyzo
a5858912d6
autorelay hosts
6 years ago
vyzo
a89e74a155
basic host: export AddrsFactory, provide method to push identify
6 years ago
vyzo
4ea04c23b3
identify: implement identify push protocol
6 years ago
Steven Allen
80c5998236
*really* fix the race in mock
6 years ago