用户信息和数据库的增删改查修改

This commit is contained in:
Administrator committed 2026-06-02 00:23:41 +08:00
1 parent 10611241d1
commit 5d9ab90ed3
16 files changed
+511 -23

No files matched your search

+2 -1
View File
@@ -46,6 +46,7 @@ namespace SunlightAggregationManager.UserClass
//将规则添加到防火墙策略中
policy?.Rules.Add(rule);
Console.WriteLine("Add firewall port:"+port);
}
public static void DelPort(int port, string protocol)
@@ -65,7 +66,7 @@ namespace SunlightAggregationManager.UserClass
if (rule.Name == GetName(port, protocol))
{
rules.Remove(rule.Name);
Console.WriteLine(@"Firewall rule deleted successfully.");
//Console.WriteLine(@"Firewall rule deleted successfully.");
break;
}
}