add disable_udp_hole_punching and hide passwd for web (#700)

* add disable_udp_hole_punching for web
* hide network_secret by default

---------

Co-authored-by: Sijie.Sun <sunsijie@buaa.edu.cn>
This commit is contained in:
kevin
2025-03-19 23:57:09 +08:00
committed by GitHub
parent 34365a096e
commit c5ea7848b3
6 changed files with 17 additions and 3 deletions

View File

@@ -612,6 +612,10 @@ impl NetworkConfig {
}
if let Some(disable_udp_hole_punching) = self.disable_udp_hole_punching {
flags.disable_udp_hole_punching = disable_udp_hole_punching;
}
cfg.set_flags(flags);
Ok(cfg)
}

View File

@@ -60,6 +60,7 @@ message NetworkConfig {
optional bool disable_encryption = 36;
optional bool enable_socks5 = 37;
optional int32 socks5_port = 38;
optional bool disable_udp_hole_punching = 39;
}
message MyNodeInfo {