mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06: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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user