mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-16 06:37:23 +08:00
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:
@@ -605,6 +605,9 @@ impl UdpHolePunchConnector {
|
||||
if self.data.global_ctx.get_flags().disable_p2p {
|
||||
return Ok(());
|
||||
}
|
||||
if self.data.global_ctx.get_flags().disable_udp_hole_punching {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
self.run_as_client().await?;
|
||||
self.run_as_server().await?;
|
||||
|
||||
Reference in New Issue
Block a user