Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
XEngine_ProxyServer V1.16.0.1001

增加:验证模块
增加:http重载proxy代理配置支持
增加:http服务api操作支持
增加:http获取proxy 规则支持
增加:http验证支持
更新:依赖库
修改:分离代理配置
修正:版本错误

added:verification module
added:reload proxy configure for http
added:http service support
added:get proxy rule for http get
added:http verification support
update:depend library
modify:Separation of Proxy Configuration
fixed:version error
======================================================================================
XEngine_ProxyServer V1.15.0.1001

ci:增加了centos和almalinux和debian 13 系统支持
Expand Down
18 changes: 9 additions & 9 deletions XEngine_Release/XEngine_Config/XEngine_Version.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"XVer": [
"1.15.0.1001 Build20260209",
"1.14.0.1001 Build20251020",
"1.13.0.1001 Build20250519",
"1.12.0.1001 Build20250325",
"1.11.0.1001 Build20250121",
"1.10.0.1001 Build20241115",
"1.9.0.1001 Build20240910",
"1.8.0.1001 Build20240522",
"1.7.1.1001 Build20240305",
"1.16.0.1001 Build20260209",
"1.15.0.1001 Build20251020",
"1.14.0.1001 Build20250519",
"1.13.0.1001 Build20250325",
"1.12.0.1001 Build20250121",
"1.11.0.1001 Build20241115",
"1.10.0.1001 Build20240910",
"1.9.0.1001 Build20240522",
"1.8.1.1001 Build20240305",
"1.7.0.1001 Build20240104",
"1.6.0.1001 Build20230817",
"1.5.1.1001 Build20230426",
Expand Down
10 changes: 5 additions & 5 deletions XEngine_Source/XEngine_ServiceApp/XEngine_HTTPTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ bool XEngine_HTTPTask_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXSTR
//获得函数名
BaseLib_String_GetKeyValue(pptszList[0], "=", tszKey, tszValue);
//得到客户端请求的方法
if (0 == _tcsxnicmp(lpszMethodPost, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodPost)))
if (0 == _tcsxncmp(lpszMethodPost, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodPost)))
{
if (0 == _tcsxnicmp(lpszAPIProxyRule, tszValue, _tcsxlen(lpszAPIProxyRule)))
if (0 == _tcsxncmp(lpszAPIProxyRule, tszValue, _tcsxlen(lpszAPIProxyRule)))
{
//http://127.0.0.1:5400/api?function=get&value=proxyrule
}
Expand All @@ -165,9 +165,9 @@ bool XEngine_HTTPTask_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXSTR
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X("HTTP客户端:%s,发送POST请求:%s,处理失败,不支持"), lpszClientAddr, pSt_HTTPParam->tszHttpUri);
}
}
else if (0 == _tcsxnicmp(lpszMethodGet, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodGet)))
else if (0 == _tcsxncmp(lpszMethodGet, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodGet)))
{
if (0 == _tcsxnicmp(lpszAPIReload, tszValue, _tcsxlen(lpszAPIReload)))
if (0 == _tcsxncmp(lpszAPIReload, tszValue, _tcsxlen(lpszAPIReload)))
{
delete st_ProxyConfig.pStl_ListDestAddr;
delete st_ProxyConfig.pStl_ListRuleAddr;
Expand All @@ -178,7 +178,7 @@ bool XEngine_HTTPTask_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXSTR
XEngine_Network_Send(lpszClientAddr, tszSDBuffer, nSDLen, XENGINE_CLIENT_NETTYPE_HTTP);
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X("HTTP客户端:%s,发送重载配置请求成功"), lpszClientAddr);
}
else if (0 == _tcsxnicmp(lpszAPIProxyRule, tszValue, _tcsxlen(lpszAPIProxyRule)))
else if (0 == _tcsxncmp(lpszAPIProxyRule, tszValue, _tcsxlen(lpszAPIProxyRule)))
{
//http://127.0.0.1:5400/api?function=proxyrule
int nListCount = 0;
Expand Down
Loading