Add trap logging, dashboard, EF migrations and Dockerfile
This commit is contained in:
1 parent
f9161f48e7
commit
b561924efa
26 files changed
+784
-62
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user