mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
nat4-nat4 punch (#388)
this patch optimize the udp hole punch logic: 1. allow start punch hole before stun test complete. 2. add lock to symmetric punch, avoid conflict between concurrent hole punching task. 3. support punching hole for predictable nat4-nat4. 4. make backoff of retry reasonable
This commit is contained in:
@@ -230,7 +230,7 @@ impl PeerCenterInstance {
|
||||
|
||||
let ret = client
|
||||
.get_global_peer_map(
|
||||
BaseController {},
|
||||
BaseController::default(),
|
||||
GetGlobalPeerMapRequest {
|
||||
digest: ctx.job_ctx.global_peer_map_digest.load(),
|
||||
},
|
||||
@@ -307,7 +307,7 @@ impl PeerCenterInstance {
|
||||
|
||||
let ret = client
|
||||
.report_peers(
|
||||
BaseController {},
|
||||
BaseController::default(),
|
||||
ReportPeersRequest {
|
||||
my_peer_id: my_node_id,
|
||||
peer_infos: Some(peers),
|
||||
|
||||
Reference in New Issue
Block a user