支持获取http反向代理真实客户端ip: #1388

This commit is contained in:
xiongziliang
2022-06-18 22:10:46 +08:00
parent 6291ee704c
commit d30869d0c9
5 changed files with 16 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ const string kVirtualPath = HTTP_FIELD "virtualPath";
const string kNotFound = HTTP_FIELD "notFound";
const string kDirMenu = HTTP_FIELD "dirMenu";
const string kForbidCacheSuffix = HTTP_FIELD "forbidCacheSuffix";
const string kForwardedIpHeader = HTTP_FIELD "forwarded_ip_header";
static onceToken token([]() {
mINI::Instance()[kSendBufSize] = 64 * 1024;
@@ -150,6 +151,7 @@ static onceToken token([]() {
"</html>"
<< endl;
mINI::Instance()[kForbidCacheSuffix] = "";
mINI::Instance()[kForwardedIpHeader] = "";
});
} // namespace Http