fix: Fixes TCPServer accept async, makes Firewall/IP Limiter multithreaded (#2134)

This commit is contained in:
Kamron Batman 2025-02-27 22:19:38 -08:00 • committed by GitHub
parent bcab91255a
commit 2a8c62e8be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 578 additions and 215 deletions

View file

@ -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);
}
});
}
}