feat: trust forwarded client addresses only from configured proxies (rate limit, audit, SSE) [CI]
Docs: access.md covers the missing node-side Backend identity and the hash-first install flow.
This commit is contained in:
1 parent
ff45ad086e
commit
a19e6548d3
9 files changed
+201
-12
No files matched your search
@@ -70,7 +70,7 @@ public static class LiveEndpoints
|
||||
}
|
||||
}
|
||||
|
||||
string client = http.Connection.RemoteIpAddress?.ToString() ?? "unknown";
|
||||
string client = http.ClientAddress();
|
||||
if (!limiter.TryAcquire(client))
|
||||
{
|
||||
return Problems.Create(http, MoShiroErrors.TooManyStreams, $"at most {options.MaxSsePerClient} live connections per client");
|
||||
|
||||
Reference in new issue
Block a user