fix punching task leak (#298)

the punching task creator doesn't check if the task is already
running, and may create many punching task to same peer node.

this patch also improve hole punching by checking hole punch packet
even if punch rpc is failed.
This commit is contained in:
Sijie.Sun
2024-08-31 14:37:34 +08:00
committed by GitHub
parent 2058dbc470
commit f07b3ee9c6
9 changed files with 185 additions and 35 deletions

View File

@@ -188,7 +188,7 @@ listeners = [
]
exit_nodes = []
peer = []
rpc_portal = "127.0.0.1:15888"
rpc_portal = "0.0.0.0:15888"
[network_identity]
network_name = "default"