Skip to content

Commit 194ba95

Browse files
authored
Merge pull request #4 from libxengine/develop
V1.3.1.1001 Merge
2 parents a5f165d + f8930bc commit 194ba95

File tree

18 files changed

+195
-110
lines changed

18 files changed

+195
-110
lines changed

CHANGELOG

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
XEngine_ProxyServer V1.3.1.1001
2+
3+
更新:匹配XEngine 7.38版本
4+
修改:现在支持MACOS系统了
5+
修改:linux和mac的构建名称
6+
修正:日志句柄打印错误
7+
修正:某些时候退出崩溃的问题
8+
9+
update:match xengine v7.38 version
10+
modify:support macos now
11+
modify:linux and mac build name
12+
fixed:handle log printf is incorrent
13+
fixed:sometime is crashed when program exit
14+
======================================================================================
115
XEngine_ProxyServer V1.3.0.1001
216

317
添加:会话转发模块

README.en.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,35 @@ this software support following features
2323

2424
## install
2525

26-
#### Requirements
27-
support system above windows 7sp1 and linux(ubuntu20.04,centos8)
28-
XEngine need V7.27 or above
26+
#### XEngine Evn
27+
you must install XEngine,need V7.38 or above,install XEngine can be refer to xengine Readme docment
28+
GITEE:https://gitee.com/xyry/libxengine
29+
GITHUB:https://github.com/libxengine/xengine
30+
31+
##### fast to deployment
32+
git clone https://gitee.com/xyry/libxengine.git or git clone https://github.com/libxengine/xengine.git
33+
window Exection XEngine_WINEnv.bat
34+
Linux Exection:sudo ./XEngine_LINEnv.sh -i 3
35+
Macos Exection:./XEngine_LINEnv.sh -i 3
2936

3037
#### Windows
31-
use vs open and complie
32-
You need to configure the environment in the following way, otherwise you may need to set the library directory in the project yourself
38+
use vs open and compile,suport windows 7sp1 and above
39+
Just Run it,use XEngine_AuthorizeApp
3340

3441
#### Linux
35-
Linux use Makefile to complie
36-
supproted ubuntu x64 or centos x64
42+
use makefile compile,UBUNTU20.04 x64 or CENTOS8 x64
43+
Run it on the terminal
44+
45+
#### Macos
46+
use makefile compile,mac 12 and above
47+
Run it on the terminal
3748

38-
##### XEngine Install
39-
you can install xengine env to your system by shell
40-
like this:sudo XEngine_RunEnv.sh -i 3
4149
##### complie
4250
execute command in XEngine_Source path
4351
make complie
4452
make FLAGS=InstallAll install
4553
make FLAGS=CleanAll clear
4654

47-
#### XEngine Env
48-
install XEngine can be refer to xengine Readme docment
49-
GITEE:https://gitee.com/xyry/libxengine
50-
GITHUB:https://github.com/libxengine/xengine
51-
5255
#### use
5356

5457
1. Switch to the MASTER branch

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,35 @@ c c++ Socks5 Proxy Service,HTTP Tunnel Proxy Service,tcp forward service
2323

2424
## 安装教程
2525

26-
#### 版本需求
27-
支持WINDOWS 7SP1和LINUX(UBUNT20.04,CENTOS8)以上系统
28-
XEngine版本需要V7.27或者以上版本
26+
#### XEngine环境
27+
必须安装XEngine,版本需要V7.38或者以上版本,安装XEngine可以参考其Readme文档
28+
GITEE:https://gitee.com/xyry/libxengine
29+
GITHUB:https://github.com/libxengine/xengine
30+
31+
###### 快速部署
32+
git clone https://gitee.com/xyry/libxengine.git 或者 git clone https://github.com/libxengine/xengine.git
33+
window执行XEngine_WINEnv.bat 脚本.
34+
Linux执行:sudo ./XEngine_LINEnv.sh -i 3
35+
macos执行:./XEngine_LINEnv.sh -i 3
2936

3037
#### Windows
31-
使用VS打开并且编译
32-
你需要按照下面的方式配置环境,不然你可能需要自己在项目中设置库目录
38+
使用VS打开并且编译,支持WINDOWS 7SP1以上系统
39+
直接运行即可,使用XEngine_AuthorizeApp
3340

3441
#### Linux
35-
Linux使用Makefile编译
36-
UBUNTU20.04 x64或者CENTOS8 x64均可
42+
Linux使用Makefile编译,UBUNTU20.04 x64或者CENTOS8 x64
43+
在控制台运行
44+
45+
#### Macos
46+
使用makefile编译,控制台运行,需要mac 12以及以上版本
47+
在控制台运行
3748

3849
##### 编译命令
3950
在XEngine_Source目录下执行命令
4051
make 编译
4152
make FLAGS=InstallAll 安装库程序
4253
make FLAGS=CleanAll 清理编译
4354

44-
#### XEngine环境
45-
安装XEngine可以参考其Readme文档
46-
GITEE:https://gitee.com/xyry/libxengine
47-
GITHUB:https://github.com/libxengine/xengine
48-
4955
#### 使用说明
5056

5157
1. 切换到MASTER分支

XEngine_Docment/Docment_en.docx

-131 KB
Binary file not shown.

XEngine_Docment/Docment_zh.docx

-130 KB
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"tszAuthFile": "./XEngine_Config/UserList.txt"
2828
},
2929
"XVer": [
30+
"1.3.1.1001 Build20220804",
3031
"1.3.0.1001 Build20220617",
3132
"1.2.0.1001 Build20220413",
3233
"1.1.0.1001 Build20211231",

XEngine_Source/VSCopy-x64.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ copy /y "%XEngine_Lib64%\x64\XEngine_RfcComponents\RfcComponents_ProxyProtocol.d
1515
copy /y "%XEngine_Lib64%\x64\XEngine_SystemSdk\XEngine_ProcFile.dll" "./"
1616
copy /y "%XEngine_Lib64%\x64\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
1717

18-
copy /y "%XEngine_Lib64%\x64\XEngine_SystemSdk\XEngine_ProcFile.dll" "./"
19-
copy /y "%XEngine_Lib64%\x64\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
20-
2118
copy /y "%XEngine_Lib64%\x64\XEngine_LibEx\libcrypto-3-x64.dll" "./"
2219
copy /y "%XEngine_Lib64%\x64\XEngine_LibEx\libssl-3-x64.dll" "./"
2320
copy /y "%XEngine_Lib64%\x64\XEngine_LibEx\libcurl.dll" "./"

XEngine_Source/VSCopy-x86.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ copy /y "%XEngine_Lib32%\XEngine_RfcComponents\RfcComponents_ProxyProtocol.dll"
1515
copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_ProcFile.dll" "./"
1616
copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
1717

18-
copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_ProcFile.dll" "./"
19-
copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
20-
2118
copy /y "%XEngine_Lib32%\XEngine_LibEx\libcrypto-3.dll" "./"
2219
copy /y "%XEngine_Lib32%\XEngine_LibEx\libssl-3.dll" "./"
2320
copy /y "%XEngine_Lib32%\XEngine_LibEx\libcurl.dll" "./"
Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
CC = g++ -Wall -std=c++17 -fPIC
2+
SHAREFLAG = -shared
3+
SHAREDLL = so
24
RELEASE = 0
35
UNICODE = 0
46
INCLUDE = -I ./
57
LOADBIN =
68
LIB =
7-
LIBEX = -static-libgcc -lrt -ldl -lpthread
9+
LIBEX = -ldl -lpthread
810
LOADSO = -Wl,-rpath=
911
LIBINCLUDE = ModuleAuthorize_User.o pch.o
1012

13+
ifeq ($(shell uname),Darwin)
14+
SHAREDLL = dylib
15+
SHAREFLAG = -dynamiclib
16+
LOADSO =
17+
else
18+
SHAREDLL = so
19+
SHAREFLAG = -shared
20+
endif
21+
1122
ifeq ($(RELEASE),1)
1223
FLAGS = -c -O2
1324
DEBUG =
1425
else
15-
FLAGS = -c -lc_p
16-
DEBUG = -g -pg
26+
FLAGS = -c
27+
DEBUG = -g
1728
endif
1829

1930
ifeq ($(UNICODE),1)
@@ -24,7 +35,7 @@ endif
2435

2536

2637
all:$(LIBINCLUDE)
27-
$(CC) $(DEBUG) $(LIBINCLUDE) -o libXEngine_ModuleAuthorize.so -shared -fPIC $(LOADBIN) $(LIB) $(LIBEX) $(LOADSO)
38+
$(CC) $(DEBUG) $(LIBINCLUDE) -o libXEngine_ModuleAuthorize.$(SHAREDLL) $(SHAREFLAG) -fPIC $(LOADBIN) $(LIB) $(LIBEX) $(LOADSO)
2839

2940
ModuleAuthorize_User.o:./ModuleAuthorize_User/ModuleAuthorize_User.cpp
3041
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(INCLUDE) ./ModuleAuthorize_User/ModuleAuthorize_User.cpp
@@ -34,12 +45,12 @@ pch.o:./pch.cpp
3445

3546

3647
InstallAll:InstallSo
37-
InstallSo:./libXEngine_ModuleAuthorize.so
38-
cp ./libXEngine_ModuleAuthorize.so ../../XEngine_Release/libXEngine_ModuleAuthorize.so
48+
InstallSo:./libXEngine_ModuleAuthorize.$(SHAREDLL)
49+
cp ./libXEngine_ModuleAuthorize.$(SHAREDLL) ../../XEngine_Release/libXEngine_ModuleAuthorize.$(SHAREDLL)
3950

4051

4152
CleanAll:CleanObj CleanMk
4253
CleanObj:
4354
rm *.o
4455
CleanMk:
45-
rm *.so
56+
rm *.$(SHAREDLL)
Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
CC = g++ -Wall -std=c++17 -fPIC
2+
SHAREFLAG = -shared
3+
SHAREDLL = so
24
RELEASE = 0
35
UNICODE = 0
46
INCLUDE = -I ./ -I ../XEngine_ThirdPart/jsoncpp
57
LOADBIN = -L ../XEngine_ThirdPart/jsoncpp
68
LIB = -ljsoncpp
7-
LIBEX = -static-libgcc -lrt -ldl -lpthread
9+
LIBEX = -ldl -lpthread
810
LOADSO = -Wl,-rpath=./,--disable-new-dtags
911
LIBINCLUDE = ModuleConfigure_Json.o pch.o
1012

13+
ifeq ($(shell uname),Darwin)
14+
SHAREDLL = dylib
15+
SHAREFLAG = -dynamiclib
16+
LOADSO =
17+
else
18+
SHAREDLL = so
19+
SHAREFLAG = -shared
20+
endif
21+
1122
ifeq ($(RELEASE),1)
1223
FLAGS = -c -O2
1324
DEBUG =
1425
else
15-
FLAGS = -c -lc_p
16-
DEBUG = -g -pg
26+
FLAGS = -c
27+
DEBUG = -g
1728
endif
1829

1930
ifeq ($(UNICODE),1)
@@ -24,7 +35,7 @@ endif
2435

2536

2637
all:$(LIBINCLUDE)
27-
$(CC) $(DEBUG) $(LIBINCLUDE) -o libXEngine_ModuleConfigure.so -shared -fPIC $(LOADBIN) $(LIB) $(LIBEX) $(LOADSO)
38+
$(CC) $(DEBUG) $(LIBINCLUDE) -o libXEngine_ModuleConfigure.$(SHAREDLL) $(SHAREFLAG) -fPIC $(LOADBIN) $(LIB) $(LIBEX) $(LOADSO)
2839

2940
ModuleConfigure_Json.o:./ModuleConfigure_Json/ModuleConfigure_Json.cpp
3041
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(INCLUDE) ./ModuleConfigure_Json/ModuleConfigure_Json.cpp
@@ -34,12 +45,12 @@ pch.o:./pch.cpp
3445

3546

3647
InstallAll:InstallSo
37-
InstallSo:./libXEngine_ModuleConfigure.so
38-
cp ./libXEngine_ModuleConfigure.so ../../XEngine_Release/libXEngine_ModuleConfigure.so
48+
InstallSo:./libXEngine_ModuleConfigure.$(SHAREDLL)
49+
cp ./libXEngine_ModuleConfigure.$(SHAREDLL) ../../XEngine_Release/libXEngine_ModuleConfigure.$(SHAREDLL)
3950

4051

4152
CleanAll:CleanObj CleanMk
4253
CleanObj:
4354
rm *.o
4455
CleanMk:
45-
rm *.so
56+
rm *.$(SHAREDLL)

0 commit comments

Comments
 (0)