Add a setting "disable_udp_hole_punch" to disable UDP hole punch function (#291)

It can solve #289 tentative.

Co-authored-by: 3rdnature <root@natureblog.net>
This commit is contained in:
3RDNature
2024-08-29 11:34:30 +08:00
committed by GitHub
parent a8bb4ee7e5
commit 6964fb71fc
4 changed files with 15 additions and 0 deletions

View File

@@ -108,6 +108,9 @@ core_clap:
disable_p2p:
en: "disable p2p communication, will only relay packets with peers specified by --peers"
zh-CN: "禁用P2P通信只通过--peers指定的节点转发数据包"
disable_udp_hole_punching:
en: "disable udp hole punching"
zh-CN: "禁用UDP打洞功能"
relay_all_peer_rpc:
en: "relay all peer rpc packets, even if the peer is not in the relay network whitelist. this can help peers not in relay network whitelist to establish p2p connection."
zh-CN: "转发所有对等节点的RPC数据包即使对等节点不在转发网络白名单中。这可以帮助白名单外网络中的对等节点建立P2P连接。"