fix: Preserve disable_sym_hole_punching setting on edit (#1589)

This commit is contained in:
Mg Pig
2025-11-15 18:57:59 +08:00
committed by GitHub
parent 1273426009
commit d726d46a00

View File

@@ -882,6 +882,7 @@ impl NetworkConfig {
result.proxy_forward_by_system = Some(flags.proxy_forward_by_system);
result.disable_encryption = Some(!flags.enable_encryption);
result.disable_udp_hole_punching = Some(flags.disable_udp_hole_punching);
result.disable_sym_hole_punching = Some(flags.disable_sym_hole_punching);
result.enable_magic_dns = Some(flags.accept_dns);
result.mtu = Some(flags.mtu as i32);
result.enable_private_mode = Some(flags.private_mode);