Add persisted runtime settings page with cookie login
This commit is contained in:
1 parent
b561924efa
commit
37987a394a
43 files changed
+1346
-61
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using System.Net;
|
||||
using Flypaper.Core;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Shouldly;
|
||||
|
||||
namespace Flypaper.Tests;
|
||||
@@ -70,7 +69,7 @@ public sealed class ConnectionGovernorTests
|
||||
}
|
||||
|
||||
private static ConnectionGovernor CreateGovernor(int maxConnections, int maxPerIp) =>
|
||||
new(Options.Create(new FlypaperOptions { MaxConnections = maxConnections, MaxConnectionsPerIp = maxPerIp }));
|
||||
new(TestOptions.Monitor(new FlypaperOptions { MaxConnections = maxConnections, MaxConnectionsPerIp = maxPerIp }));
|
||||
|
||||
private static TrapSession Session(IPAddress ip) => new(Guid.NewGuid(), TrapProtocol.Http, ip, DateTimeOffset.UtcNow);
|
||||
}
|
||||
Reference in new issue
Block a user