mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Add WebUI reverse proxy source IP resolution (#15047)
Co-authored-by: qix67 Co-authored-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
parent
124cc9621d
commit
f5315d9ba7
9 changed files with 165 additions and 3 deletions
|
@ -114,6 +114,8 @@ private:
|
|||
bool isCrossSiteRequest(const Http::Request &request) const;
|
||||
bool validateHostHeader(const QStringList &domains) const;
|
||||
|
||||
QHostAddress resolveClientAddress() const;
|
||||
|
||||
// Persistent data
|
||||
QHash<QString, WebSession *> m_sessions;
|
||||
|
||||
|
@ -154,5 +156,10 @@ private:
|
|||
bool m_isHostHeaderValidationEnabled;
|
||||
bool m_isHttpsEnabled;
|
||||
|
||||
// Reverse proxy
|
||||
bool m_isReverseProxySupportEnabled;
|
||||
QVector<QHostAddress> m_trustedReverseProxyList;
|
||||
QHostAddress m_clientAddress;
|
||||
|
||||
QVector<Http::Header> m_prebuiltHeaders;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue