mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 13:47:24 +08:00
add options to gui to enable kcp (#583)
* add test to kcp * add options to gui to enable kcp
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user