![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Functions | |
| QHostAddress | parseForwardedAddress (const QByteArray &headerValue) |
| Parses the real client address out of a forwarded header value (X-Real-IP, X-Forwarded-For). | |
| QHostAddress parseForwardedAddress | ( | const QByteArray & | headerValue | ) |
Parses the real client address out of a forwarded header value (X-Real-IP, X-Forwarded-For).
A comma-separated list resolves to its rightmost usable entry. That entry was appended by the proxy closest to the server and is the only one a direct client cannot choose, since the earlier entries are passed through verbatim from whatever the client sent.