Skip to content

Commit 5dd14e9

Browse files
authored
Merge pull request #19 from libxengine/develop
V1.9.0.1001 Merge
2 parents 40cc3f9 + 46960c5 commit 5dd14e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1432
-7718
lines changed

CHANGELOG

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
XEngine_ProxyServer V1.9.0.1001
2+
3+
增加:XENGINE版本处理和退出等待功能
4+
更新:匹配XEngineV8.38版本
5+
修改:从XEngine中移动SOCKS管理代码到会话模块中
6+
修改:从XEngine中移动tunnel管理代码到会话模块中
7+
修正:SOCKS连接完成后客户端客户端状态不正确的的问题
8+
修正:tunnel保持连接数据处理不正确的问题
9+
修正:tunnel数据未完成处理失败导致的问题
10+
删除:多余的第三方库jsoncpp
11+
12+
added:xengine version process and getchar with error exit
13+
update:xengine V8.38 match
14+
modify:move socks to session module from xengine.
15+
modify:move tunnel to session module from xengine.
16+
fixed:socks connect complete client status is incorrect
17+
fixed:tunnel keep-live connect data process is incorrect
18+
fixed:is not complete data handle failed when tunnel proxy packet
19+
delete:json of third-part
20+
======================================================================================
121
XEngine_ProxyServer V1.8.0.1001
222

323
增加:信息报告支持

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ macos执行:./XEngine_LINEnv.sh -i 3
3737
#### sub module
3838
由于依赖的子模块,在你checkout仓库后,在仓库目录下执行下面的命令拉取子模块
3939
git submodule init
40-
git submodule update
40+
git submodule update
41+
如果github访问失败,你也可以clone该项目,在主目录下使用命令:git clone https://gitee.com/xengine/XEngine_OPenSource.git XEngine_Source/XEngine_Depend
4142

4243
#### Windows
4344
使用VS打开并且编译,支持WINDOWS 7SP1以上系统
@@ -92,14 +93,6 @@ make FLAGS=CleanAll 清理编译
9293
3. 提交代码
9394
4. 新建 Pull Request
9495

95-
## 开发计划
96-
透传代理
97-
支持加密代理
98-
转发代理绑定解绑支持附加用户信息
99-
转发代理绑定支持拒绝
100-
支持UDP转发代理
101-
性能优化
102-
10396
## 关注我们
10497
如果你觉得这个软件对你有帮助,请你给我们一个START吧
10598

XEngine_APPClient/APPClient_SocksExample/APPClient_SocksExample.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int main(int argc, char** argv)
9090
}
9191
}
9292
//////////////////////////////////////////////////////////////////////////连接
93-
ProxyProtocol_SocksClient_ConnectPacket(tszMsgBuffer, &nMsgLen, "www.xyry.org", 80, ENUM_RFCCOMPONENTS_PROXYSOCKS_COMMAND_CONNECT, ENUM_RFCCOMPONENTS_PROXYSOCKS_IPADDR_DOMAIN);
93+
ProxyProtocol_SocksClient_ConnectPacket(tszMsgBuffer, &nMsgLen, "www.libxengine.com", 80, ENUM_RFCCOMPONENTS_PROXYSOCKS_COMMAND_CONNECT, ENUM_RFCCOMPONENTS_PROXYSOCKS_IPADDR_DOMAIN);
9494
if (!XClient_TCPSelect_SendMsg(m_Socket, tszMsgBuffer, nMsgLen))
9595
{
9696
printf("发送投递失败!\n");
@@ -106,7 +106,7 @@ int main(int argc, char** argv)
106106
int nCode = 0;
107107
ProxyProtocol_SocksClient_ConnectParse(tszMsgBuffer, &nCode);
108108
//请求
109-
LPCXSTR lpszGetHttp = _X("GET / HTTP/1.1\r\nHost: www.xyry.org\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36\r\nAccept: text/html\r\n\r\n");
109+
LPCXSTR lpszGetHttp = _X("GET / HTTP/1.1\r\nHost: www.libxengine.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36\r\nAccept: text/html\r\n\r\n");
110110
if (!XClient_TCPSelect_SendMsg(m_Socket, lpszGetHttp, _tcsxlen(lpszGetHttp)))
111111
{
112112
printf("发送投递失败!\n");

XEngine_APPClient/APPClient_TunnelExample/APPClient_TunnelExample.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int main(int argc, char** argv)
4343
XCHAR tszMsgBuffer[2048];
4444
memset(tszMsgBuffer, '\0', sizeof(tszMsgBuffer));
4545

46-
ProxyProtocol_TunnelClient_Packet(tszMsgBuffer, &nMsgLen, "www.xyry.org:80", "MTIzMTIzYWE6MTIzMTIz");
46+
ProxyProtocol_TunnelClient_Packet(tszMsgBuffer, &nMsgLen, "www.libxengine.com:80", "MTIzMTIzYWE6MTIzMTIz");
4747
if (!XClient_TCPSelect_SendMsg(m_Socket, tszMsgBuffer, nMsgLen))
4848
{
4949
printf("发送投递失败!\n");
@@ -59,7 +59,7 @@ int main(int argc, char** argv)
5959
}
6060
printf("接受服务器返回数据,内容:%s\n", tszMsgBuffer);
6161

62-
LPCXSTR lpszGetHttp = _X("GET / HTTP/1.1\r\nHost: www.xyry.org\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36\r\nAccept: text/html\r\n\r\n");
62+
LPCXSTR lpszGetHttp = _X("GET / HTTP/1.1\r\nHost: www.libxengine.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36\r\nAccept: text/html\r\n\r\n");
6363
if (!XClient_TCPSelect_SendMsg(m_Socket, lpszGetHttp, _tcsxlen(lpszGetHttp)))
6464
{
6565
printf("发送投递失败!\n");

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"XLog": {
2020
"MaxSize": 1024000,
2121
"MaxCount": 10,
22-
"LogLeave": 32,
22+
"LogLeave": 17,
2323
"tszLogFile": "./XEngine_Log/XEngine_ProxyServiceApp.log"
2424
},
2525
"XReport":{

XEngine_Release/XEngine_Config/XEngine_Version.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"XVer": [
3+
"1.9.0.1001 Build20240910",
34
"1.8.0.1001 Build20240522",
45
"1.7.1.1001 Build20240305",
56
"1.7.0.1001 Build20240104",

XEngine_Source/XEngine_Depend

Submodule XEngine_Depend updated 38 files

XEngine_Source/XEngine_ModuleSession/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LOADHDR = -I ./ -I ../XEngine_ThirdPart/jsoncpp
1010
LOADSO =
1111
LIB = -lXEngine_BaseLib
1212
LIBEX =
13-
OBJECTS = ModuleSession_Forward.o pch.o
13+
OBJECTS = ModuleSession_Forward.o ModuleSession_Socks.o ModuleSession_Tunnel.o pch.o
1414

1515
ifeq ($(RELEASE),1)
1616
FLAGS = -c
@@ -54,7 +54,11 @@ all:$(OBJECTS)
5454

5555
ModuleSession_Forward.o:./ModuleSession_Forward/ModuleSession_Forward.cpp
5656
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./ModuleSession_Forward/ModuleSession_Forward.cpp
57-
57+
ModuleSession_Socks.o:./ModuleSession_Socks/ModuleSession_Socks.cpp
58+
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./ModuleSession_Socks/ModuleSession_Socks.cpp
59+
ModuleSession_Tunnel.o:./ModuleSession_Tunnel/ModuleSession_Tunnel.cpp
60+
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./ModuleSession_Tunnel/ModuleSession_Tunnel.cpp
61+
5862
pch.o:./pch.cpp
5963
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./pch.cpp
6064

0 commit comments

Comments
 (0)