Add trap logging, dashboard, EF migrations and Dockerfile

This commit is contained in:
Tom committed 2026-11-14 13:31:59 +01:00
1 parent f9161f48e7
commit b561924efa
26 files changed
+784 -62

No files matched your search

+2 -1
View File
@@ -21,10 +21,11 @@ internal sealed class FlypaperMiddleware(
return;
}
var remoteIp = context.Connection.RemoteIpAddress ?? IPAddress.None;
var session = new TrapSession(
Guid.NewGuid(),
TrapProtocol.Http,
context.Connection.RemoteIpAddress ?? IPAddress.None,
remoteIp.IsIPv4MappedToIPv6 ? remoteIp.MapToIPv4() : remoteIp,
timeProvider.GetUtcNow());
var trapContext = new TrapContext(