feat(ui): add ACL graphical configuration interface (#1815)

This commit is contained in:
Mg Pig
2026-04-18 20:23:53 +08:00
committed by GitHub
parent 6ca074abae
commit c49c56612b
11 changed files with 843 additions and 2 deletions
+8
View File
@@ -825,6 +825,12 @@ impl NetworkConfig {
flags.encryption_algorithm = encryption_algorithm;
}
if let Some(acl) = self.acl.as_ref()
&& !acl.is_empty()
{
cfg.set_acl(Some(acl.clone()));
}
if let Some(data_compress_algo) = self.data_compress_algo {
if data_compress_algo < 1 {
flags.data_compress_algo = 1;
@@ -964,6 +970,8 @@ impl NetworkConfig {
(flags.instance_recv_bps_limit != u64::MAX).then_some(flags.instance_recv_bps_limit);
result.enable_private_mode = Some(flags.private_mode);
result.acl = config.get_acl();
if flags.relay_network_whitelist == "*" {
result.enable_relay_network_whitelist = Some(false);
} else {