Allow to use subnet notation in reverse proxy list

Closes #17475.
This commit is contained in:
Chocobo1 2022-09-07 13:29:46 +08:00
parent 851374e517
commit 109c45bb95
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 24 additions and 9 deletions

View file

@ -34,11 +34,13 @@
#include <QDateTime>
#include <QElapsedTimer>
#include <QHash>
#include <QHostAddress>
#include <QMap>
#include <QObject>
#include <QRegularExpression>
#include <QSet>
#include <QTranslator>
#include <QVector>
#include "base/applicationcomponent.h"
#include "base/global.h"
@ -233,7 +235,7 @@ private:
// Reverse proxy
bool m_isReverseProxySupportEnabled;
QVector<QHostAddress> m_trustedReverseProxyList;
QVector<Utils::Net::Subnet> m_trustedReverseProxyList;
QHostAddress m_clientAddress;
QVector<Http::Header> m_prebuiltHeaders;