Mathias Buus
0133d5c402
add to field to all node objects for easier nat stuff
4 years ago
Mathias Buus
ec1c71c104
resolve sample promise always after ready
4 years ago
Mathias Buus
3f199cf981
move to version 2 to avoid utp clashes fully (utp uses 1)
4 years ago
Mathias Buus
c4f7e566fe
add sampledNAT helper
4 years ago
Mathias Buus
daf8327b7b
if diff socket -> eph, allow token in opts
4 years ago
Mathias Buus
5ccbd2dcfe
update request options
4 years ago
Mathias Buus
bd1c516a7a
port of last of the tests
4 years ago
Mathias Buus
3e2b5fafaf
final docs and improve example
4 years ago
Mathias Buus
5d9f4ea7ba
final tweaks to nat analyser - only missing docs for stable release
4 years ago
Mathias Buus
1016f59e0e
only add one sample per bootstrap node
4 years ago
Mathias Buus
c58c359519
limit max pong to 32 bytes
4 years ago
Mathias Buus
7a4edb80e2
tweak nat open requirements
4 years ago
Mathias Buus
88f57d85c1
add NAT_OPEN enum
4 years ago
Mathias Buus
1e27ca7dbb
add nat check, change defaults
4 years ago
Mathias Buus
c8e300eaf5
move to secure ids
4 years ago
Mathias Buus
cbb2feec27
more fixes
4 years ago
Mathias Buus
f3035f38fc
add commit hook to stream
4 years ago
Mathias Buus
a011be7093
adaptive mode and add bootstrap isolation recovery
4 years ago
Mathias Buus
44817ae339
guard dht stability with a port consistent check
4 years ago
Mathias Buus
2ebf446cb4
add remoteAddress backed by the nat analyzer
4 years ago
Mathias Buus
0fba9d92e2
lots of fixes, emits stablity/wakeup events
4 years ago
Mathias Buus
21c6d5b186
add rpc backpressure through reqs-sent/s and rework lots of stuff. start firewall analysis impl
4 years ago
Mathias Buus
8ef5d49807
fix standard
4 years ago
Mathias Buus
1f4239f32c
add basic v5 rewrite
4 years ago
Mathias Buus
9a4594f8dd
fix regression
4 years ago
Mathias Buus
838e42ee74
fix some crashes
4 years ago
Mathias Buus
73864e832e
always set punch.to
5 years ago
Mathias Buus
dae3760b8d
switch to blake2b-universal and native sodium
5 years ago
Aurélien Ooms
730a9066b9
feat: Add getNodes() and addNodes() methods.
5 years ago
Mathias Buus
f9293beb69
add version
5 years ago
Mathias Buus
14c8ecc045
fix add bug
5 years ago
Mathias Buus
7f4ccfdf0b
bump pings to 3/5
5 years ago
Mathias Buus
bfce70c8b2
support setting id
5 years ago
Mathias Buus
37dadea1d1
fix peers not getting gced
5 years ago
Mathias Buus
0199773e69
make socket saturation take request-per-seconds into account to avoid starvation when lots of timeouts happen
5 years ago
David Mark Clements
03c5eb512b
persistent method, rm setEphemeral ( #19 )
* persistent method, rm setEphemeral
* docs: persistent
5 years ago
Mathias Buus
ffc43c2723
infer holepunchability from peers ( #18 )
* infer holepunchability from peers
* use res.to in pong for forwards compat
* add remoteAddress also
* add initial-nodes event
* docs
5 years ago
Mathias Buus
a85df37327
update id directly
5 years ago
David Mark Clements
74c4a740e1
add setEphemeral method ( #9 )
* add turnNonEphemeral method
* rename to joinDht
* joinDht functionality and tests
* update ephemeral flag only after successful join dht
* joinDht -> setEphemeral
* setEphem(true) test, currently failing
* setEphemeral(true) now working
* rm left over debug artifacts
* update docs to api alteration
* trigger newly ephem node gc from the ght via requests instead of ping, as we need ping for holepunching to bootstrap nodes
* charCodeAt instead of string slice
5 years ago
David Mark Clements
1aff258965
allow values with errors for error proof purposes
5 years ago
David Mark Clements
eb2c7e0a8d
graceful destroy
5 years ago
Mathias Buus
a9bc5632ac
rebootstrap if we become unreachable
6 years ago
Mathias Buus
b4ad55f3fe
forward critical socket errors
6 years ago
Mathias Buus
902828329e
missing socket option
6 years ago
Mathias Buus
3a05e9c03e
Next version ( #2 )
* rebase on top old history
* fix dep
* more missing deps
* updated docs
* impl readme api
* final tweaks
* more tests
* revert version
* remove dead code
6 years ago
Mathias Buus
976b8e9372
fix public hole puncher
6 years ago
Mathias Buus
fca4fe6242
use time-ordered-set
6 years ago
Mathias Buus
7eda09cff3
migrate to blake2b and sodium
7 years ago
Mathias Buus
fbfbca601e
add .bootstrap and fix ping bug
8 years ago
Mathias Buus
963510c3e9
closest -> update
8 years ago