57 Commits

Author SHA1 Message Date
Arnaud
dcd3e48d3f
Remove useless comment 2026-06-18 11:14:03 +04:00
Arnaud
e0043f2e5c
Rename misleading bool 2026-06-18 10:38:47 +04:00
Arnaud
3d4400ce01
Add more guard 2026-06-17 22:35:30 +04:00
Arnaud
4bcabb5ec5
Refactor PortMapping object 2026-06-17 22:35:30 +04:00
Arnaud
c300282437
Remove port mapper: PCP on another port is a limitation 2026-06-17 22:35:30 +04:00
Arnaud
164f2dac3a
Fallback on relay when port mapping is not reachable 2026-06-17 22:35:30 +04:00
Arnaud
0c938e6b1a
Add peer connections in debug 2026-06-17 22:35:30 +04:00
Arnaud
dcdc9d0450
Guard isSome 2026-06-17 22:35:28 +04:00
Arnaud
e523c52aa4
Use interal destroyMappingFor 2026-06-17 22:35:28 +04:00
Arnaud
594d47fe23
Add more tests 2026-06-17 22:35:28 +04:00
Arnaud
b055aefb52
Improve testsi 2026-06-17 22:35:28 +04:00
Arnaud
43db403b84
Add warning 2026-06-17 22:35:27 +04:00
Arnaud
ec24e0ffdc
Cleanup 2026-06-17 22:35:27 +04:00
Arnaud
d33878e214
Simplify the address announcement 2026-06-17 22:35:27 +04:00
Arnaud
37c4ee5e87
Cleanup 2026-06-17 22:35:27 +04:00
Arnaud
fdf5396e60
Add custom address mapper to remap the port mapping by UPnP / PCP 2026-06-17 22:35:26 +04:00
Arnaud
1ec0651139
Retry port mapping on NotReachable 2026-06-17 22:35:26 +04:00
Arnaud
b7ee215c32
Fix duplicate addresses in libp2p 2026-06-17 22:35:26 +04:00
Arnaud
20e820f07b
Cleanup 2026-06-17 22:35:25 +04:00
Arnaud
37fd43221f
Refactor tests 2026-06-17 22:35:25 +04:00
Arnaud
37ba19221a
Cleanup 2026-06-17 22:35:24 +04:00
Arnaud
5c8391d2f6
Re raise cancelled error 2026-06-17 22:35:23 +04:00
Arnaud
d1a44ef997
Prevent libplum re-initialization after shutdown 2026-06-17 22:35:22 +04:00
Arnaud
a4196d6a5d
Include relay addresses in the SPR and refactoring 2026-06-17 22:35:22 +04:00
Arnaud
ccb80ac79b
Announce the mapped external UDP port instead of the discovery port 2026-06-17 22:35:22 +04:00
Arnaud
48d81dcc0e
Announce address when peer info is updated 2026-06-17 22:35:22 +04:00
Arnaud
f0a7e4b425
Update nim libplum and provide multiple fixes 2026-06-17 22:35:21 +04:00
Arnaud
8548ecebf3
Fix openapi 2026-06-17 22:35:21 +04:00
Arnaud
00e6557052
Fix clientMode order and avoid retry port mapping after Not Reachable 2026-06-17 22:35:21 +04:00
Arnaud
1c6ae98948
Improve handleNatStatus case when dial back is none 2026-06-17 22:35:20 +04:00
Arnaud
b7dcf87d3f
Update records and spr even if the mapping does not exist when dial back is none 2026-06-17 22:35:19 +04:00
Arnaud
3362e1a343
Close peer event handler 2026-06-17 22:35:18 +04:00
Arnaud
bb64130614
Update dht records and spr when dial back is empty 2026-06-17 22:35:17 +04:00
Arnaud
bffa085dae
Close the mapping when the dial back is none. 2026-06-17 22:35:17 +04:00
Arnaud
4db7cb6469
Use local record as source of truth for the spr 2026-06-17 22:35:17 +04:00
Arnaud
03933c2b3a
Add hole punching 2026-06-17 22:35:17 +04:00
Arnaud
0ffee3d14f
Export port 2026-06-17 22:35:17 +04:00
Arnaud
f020de1387
Refactactoring 2026-06-17 22:35:16 +04:00
Arnaud
b274629d69
Add integration with libplum 2026-06-17 22:35:16 +04:00
Arnaud
084f3dfa04
Refactoring to make udp port explicit 2026-06-17 22:35:15 +04:00
Arnaud
641b9f0443
Add DHT client mode 2026-06-17 22:35:15 +04:00
Arnaud
e5b9b73bb8
Expose port mapping type 2026-06-17 22:35:14 +04:00
Arnaud
67155fa2a9
Add debug logs 2026-06-17 22:35:13 +04:00
Arnaud
bffd13c160
Use thread to set the nat ports 2026-06-17 22:35:12 +04:00
Arnaud
b0442d1d19
Refactor Upnp 2026-06-17 22:35:12 +04:00
Arnaud
d5b032ea75
Update address announcements update 2026-06-17 22:35:12 +04:00
Arnaud
affe4e2c00
Update imports 2026-06-17 22:35:12 +04:00
Arnaud
da91a720b8
use AutoNat dialback IP instead of router public IP 2026-06-17 22:35:11 +04:00
Arnaud
49fb1daf6d
Rename nat any to nat auto 2026-06-17 22:35:11 +04:00
Arnaud
006df11163
Remove nat none stategy 2026-06-17 22:35:11 +04:00