fix: Fixes TCPServer accept async, makes Firewall/IP Limiter multithreaded (#2134)
This commit is contained in:
parent
bcab91255a
commit
2a8c62e8be
15 changed files with 578 additions and 215 deletions
|
|
@ -127,10 +127,13 @@ public static class AdminFirewall
|
|||
|
||||
public static void Save()
|
||||
{
|
||||
using var op = new StreamWriter(firewallConfigPath);
|
||||
foreach (var entry in Firewall.FirewallSet)
|
||||
Firewall.ReadFirewallSet(firewallSet =>
|
||||
{
|
||||
op.WriteLine(entry);
|
||||
}
|
||||
using var op = new StreamWriter(firewallConfigPath);
|
||||
foreach (var entry in firewallSet)
|
||||
{
|
||||
op.WriteLine(entry);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue