add options to gui to enable kcp (#583)

* add test to kcp
* add options to gui to enable kcp
This commit is contained in:
Sijie.Sun
2025-01-26 13:31:20 +08:00
committed by GitHub
parent 55a39491cb
commit b69b122c8d
7 changed files with 104 additions and 5 deletions

View File

@@ -364,6 +364,7 @@ pub async fn subnet_proxy_three_node_test(
#[values("tcp", "udp", "wg")] proto: &str,
#[values(true, false)] no_tun: bool,
#[values(true, false)] relay_by_public_server: bool,
#[values(true, false)] enable_kcp_proxy: bool,
) {
let insts = init_three_node_ex(
proto,
@@ -382,6 +383,12 @@ pub async fn subnet_proxy_three_node_test(
));
}
if cfg.get_inst_name() == "inst1" && enable_kcp_proxy {
let mut flags = cfg.get_flags();
flags.enable_kcp_proxy = true;
cfg.set_flags(flags);
}
cfg
},
relay_by_public_server,