mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-18 06:02:21 +08:00
支持获取http反向代理真实客户端ip: #1388
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user