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 authored and GitHub committed 2024-08-31 14:37:34 +08:00
1 parent 2058dbc470
commit f07b3ee9c6
9 files changed
+185 -35

No files matched your search

+1 -1
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"