Skip to content

Commit 766fad7

Browse files
committed
v2.2 + Fix vless-grpc/xtls configuration builder
1 parent 20b5c09 commit 766fad7

File tree

8 files changed

+136
-134
lines changed

8 files changed

+136
-134
lines changed

xraygui/backup/unit1.pas

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
957957
//Не все серверы перешли на эту опцию, временно оставляем (direct) для совместимости
958958
if VlessDecode(VLESSURL, 'security') = 'xtls' then
959959
S.Add(' "flow": "xtls-rprx-direct",');
960-
if VlessDecode(VLESSURL, 'security') = 'reality' then
960+
if (VlessDecode(VLESSURL, 'security') = 'reality') or (VlessDecode(VLESSURL, 'flow') = 'xtls-rprx-vision') then
961961
S.Add(' "flow": "' +
962962
VlessDecode(VLESSURL, 'flow') + '",');
963963

@@ -973,18 +973,17 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
973973
S.Add(' "streamSettings": {');
974974

975975
//if gRPC
976-
//if Pos('type=grpc', VLESSURL) <> 0 then
977976
if VlessDecode(VLESSURL, 'type') = 'grpc' then
978977
begin
979978
S.Add(' "grpcSettings": {');
980979
S.Add(' "multiMode": false,');
981-
//S.Add(' "serviceName": "vless-grpc"');
982-
S.Add(' "serviceName": "' + VlessDecode(VLESSURL, 'serviceName') + '"');
980+
S.Add(' "serviceName": "' +
981+
VlessDecode(VLESSURL, 'serviceName') + '"');
983982
S.Add(' },');
984983
end;
985984

986985
//if KCP
987-
if Pos('type=kcp', VLESSURL) <> 0 then
986+
if VlessDecode(VLESSURL, 'type') = 'kcp' then
988987
begin
989988
S.Add(' "kcpSettings": {');
990989
S.Add(' "seed": "' + VlessDecode(VLESSURL, 'seed') + '"');

xraygui/backup/xraygui.lps

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
<ResourceBaseClass Value="Form"/>
5151
<UnitName Value="Unit1"/>
5252
<IsVisibleTab Value="True"/>
53-
<TopLine Value="966"/>
54-
<CursorPos X="44" Y="986"/>
53+
<TopLine Value="951"/>
54+
<CursorPos X="109" Y="960"/>
5555
<UsageCount Value="80"/>
5656
<Loaded Value="True"/>
5757
<LoadedDesigner Value="True"/>

xraygui/lib/x86_64-linux/unit1.o

376 Bytes
Binary file not shown.

xraygui/lib/x86_64-linux/unit1.ppu

0 Bytes
Binary file not shown.

xraygui/package_project/xraygui.prj

Lines changed: 119 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -87,121 +87,122 @@ toolversion=3.2
8787
[INFO]
8888
0=v2.2
8989
1=+ Fix vless-grpc configuration (serviceName)
90-
2=+ Correction of deleting configurations in Connected mode
91-
3=+ Correcting the pointer setting in the list of configurations at the first start
92-
4=+ Packages for Mageia-8/9 and Ubuntu
93-
5=
94-
6=v2.1
95-
7=+ /usr/bin/xray-update: switching to curl
96-
8=+ Removing wget and fping from dependencies (spec)
97-
9=+ Packages for Mageia-8/9 and Ubuntu
98-
10=
99-
11=v2.0
100-
12=+ Improved /usr/bin/xray-update
101-
13=+ Packages for Mageia-8/9 and Ubuntu
102-
14=
103-
15=v1.9
104-
16=+ Recompilation in Lazarus-3.2
105-
17=+ Added qrencode dependency
106-
18=+ Display QR code for connections
107-
19=+ Packages for Mageia-8/9 and Ubuntu
108-
20=
109-
21=Note: The QR code simplifies the procedure for connecting your smartphone by scanning it in the client application. Test for LG Q6 + NekoBox-1.3.1 passed.
110-
22=
111-
23=v1.8
112-
24=+ Bypassing domain zones (cn, ru, by, ir, ...)
113-
25=+ Improved /etc/systemd/user/xray.service
114-
26=+ Packages for Mageia-9 and Ubuntu
115-
27=
116-
28=v1.7
117-
29=+ Reality generator: SNI list expanded
118-
30=+ Comsetic edits, code optimization
119-
31=+ Packages for Mageia-9 and Ubuntu
120-
32=
121-
33=v1.6
122-
34=+ REALITY support
123-
35=+ Simple REALITY configurator (Client-Server)
124-
36=+ Packages for Mageia-9 and Ubuntu
125-
37=
126-
38=v1.5
127-
39=+ System-Wide Proxy (SWP)
128-
40=+ Additional port 8889 (HTTP/HTTPS/FTP)
129-
41=+ Correction of tags for reading connection logs
130-
42=+ Dependencies: lib64proxy-gnome lib64proxy-kde
131-
43=+ Packages for Mageia-9 and Ubuntu
132-
44=
133-
45=**Note:** System-Wide Proxy supported in Budgie, GNOME, Cinnamon, MATE, KDE-5. [Read more...](https://github.com/AKotov-dev/XRayGUI)
134-
46=
135-
47=v1.4
136-
48=+ Support VLESS + KCP
137-
49=+ Packages for Mageia-9 and Ubuntu
138-
50=
139-
51=v1.2
140-
52=+ Default: "allowInsecure": true
141-
53=+ Default connection: 127.0.0.1:1080
142-
54=+ Improved Сonfiguration building
143-
55=+ Improved startup/update services
144-
56=+ Switching logging to the "warning" level
145-
57=+ RPM packages for Mageia-8 and Mageia-9
146-
58=
147-
59=v1.1
148-
60=+ Installing xray-core from the GitHub
149-
61=+ xray-core installation/update directory ~/.config/xraygui/xray
150-
62=+ RPM packages for Mageia-8 and Mageia-9
151-
63=
152-
64=v1.0
153-
65=+ Update Xray-core v1.6.0
154-
66=+ Auto-update Xray-Core at GUI startup
155-
67=+ RPM packages for Mageia-8 and Mageia-9
156-
68=
157-
69=v0.9
158-
70=+ Improved startup control (xray/port)
159-
71=+ Prevention the launch of the second copy of the program
160-
72=
161-
73=v0.8-1
162-
74=+ Update: Xray-core v1.5.9
163-
75=
164-
76=v0.8
165-
77=+ Switching to systemd (autostart from the user)
166-
78=+ Correction of the spec file (rpm/deb)
167-
79=+ Autostart testing in Mageia/LUbuntu - passed
168-
80=
169-
81=v0.7
170-
82=+ Vless+gRPC and Trojan+gRPC support
171-
83=+ General test:
172-
84=VMESS TLS - passed
173-
85=VMESS non TLS - passed
174-
86=
175-
87=VLESS TLS - passed
176-
88=VLESS non TLS - passed
177-
89=VLESS + WS TLS - passed
178-
90=VLESS + WS non TLS - passed
179-
91=VLESS + gRPC - passed
180-
92=
181-
93=Trojan - passed
182-
94=Trojan + WS - passed
183-
95=Trojan + gRPC - passed
184-
96=
185-
97=v0.6
186-
98=+ Trojan protocol support
187-
99=+ Proxy launch control in a separate thread
188-
100=+ Optimization of Vmess/Vless/SS/Trojan configurations
189-
101=
190-
102=v0.5
191-
103=+ Supported protocols: VMESS/VLESS (ws, ws+tls) and SS (without obfs)
192-
104=+ Changed the file type of uploading/saving the list of configurations to *.proxy
193-
105=+ Excluded URL insertion from PopUp menu to save duplicate search
194-
106=
195-
107=v0.4
196-
108=+ Optimization of log output
197-
109=+ Optimization of general perception (visual load)
198-
110=
199-
111=v0.3
200-
112=+ Autostart proxy after reboot
201-
113=+ Disabling xray before updating/deleting rpm/deb (spec)
202-
114=
203-
115=v0.2
204-
116=+ PopUp menu: Paste from clipboard
205-
117=+ Cosmetic edits, hints, etc...
206-
118=
207-
119=v0.1 - initial release
90+
2=+ Correction of [xtls-rprx-direct/xtls-rprx-vision]( https://github.com/wulabing/Xray_onekey/issues/445)
91+
3=+ Correction of deleting configurations in Connected mode
92+
4=+ Correcting the pointer setting in the list of configurations at the first start
93+
5=+ Packages for Mageia-8/9 and Ubuntu
94+
6=
95+
7=v2.1
96+
8=+ /usr/bin/xray-update: switching to curl
97+
9=+ Removing wget and fping from dependencies (spec)
98+
10=+ Packages for Mageia-8/9 and Ubuntu
99+
11=
100+
12=v2.0
101+
13=+ Improved /usr/bin/xray-update
102+
14=+ Packages for Mageia-8/9 and Ubuntu
103+
15=
104+
16=v1.9
105+
17=+ Recompilation in Lazarus-3.2
106+
18=+ Added qrencode dependency
107+
19=+ Display QR code for connections
108+
20=+ Packages for Mageia-8/9 and Ubuntu
109+
21=
110+
22=Note: The QR code simplifies the procedure for connecting your smartphone by scanning it in the client application. Test for LG Q6 + NekoBox-1.3.1 passed.
111+
23=
112+
24=v1.8
113+
25=+ Bypassing domain zones (cn, ru, by, ir, ...)
114+
26=+ Improved /etc/systemd/user/xray.service
115+
27=+ Packages for Mageia-9 and Ubuntu
116+
28=
117+
29=v1.7
118+
30=+ Reality generator: SNI list expanded
119+
31=+ Comsetic edits, code optimization
120+
32=+ Packages for Mageia-9 and Ubuntu
121+
33=
122+
34=v1.6
123+
35=+ REALITY support
124+
36=+ Simple REALITY configurator (Client-Server)
125+
37=+ Packages for Mageia-9 and Ubuntu
126+
38=
127+
39=v1.5
128+
40=+ System-Wide Proxy (SWP)
129+
41=+ Additional port 8889 (HTTP/HTTPS/FTP)
130+
42=+ Correction of tags for reading connection logs
131+
43=+ Dependencies: lib64proxy-gnome lib64proxy-kde
132+
44=+ Packages for Mageia-9 and Ubuntu
133+
45=
134+
46=**Note:** System-Wide Proxy supported in Budgie, GNOME, Cinnamon, MATE, KDE-5. [Read more...](https://github.com/AKotov-dev/XRayGUI)
135+
47=
136+
48=v1.4
137+
49=+ Support VLESS + KCP
138+
50=+ Packages for Mageia-9 and Ubuntu
139+
51=
140+
52=v1.2
141+
53=+ Default: "allowInsecure": true
142+
54=+ Default connection: 127.0.0.1:1080
143+
55=+ Improved Сonfiguration building
144+
56=+ Improved startup/update services
145+
57=+ Switching logging to the "warning" level
146+
58=+ RPM packages for Mageia-8 and Mageia-9
147+
59=
148+
60=v1.1
149+
61=+ Installing xray-core from the GitHub
150+
62=+ xray-core installation/update directory ~/.config/xraygui/xray
151+
63=+ RPM packages for Mageia-8 and Mageia-9
152+
64=
153+
65=v1.0
154+
66=+ Update Xray-core v1.6.0
155+
67=+ Auto-update Xray-Core at GUI startup
156+
68=+ RPM packages for Mageia-8 and Mageia-9
157+
69=
158+
70=v0.9
159+
71=+ Improved startup control (xray/port)
160+
72=+ Prevention the launch of the second copy of the program
161+
73=
162+
74=v0.8-1
163+
75=+ Update: Xray-core v1.5.9
164+
76=
165+
77=v0.8
166+
78=+ Switching to systemd (autostart from the user)
167+
79=+ Correction of the spec file (rpm/deb)
168+
80=+ Autostart testing in Mageia/LUbuntu - passed
169+
81=
170+
82=v0.7
171+
83=+ Vless+gRPC and Trojan+gRPC support
172+
84=+ General test:
173+
85=VMESS TLS - passed
174+
86=VMESS non TLS - passed
175+
87=
176+
88=VLESS TLS - passed
177+
89=VLESS non TLS - passed
178+
90=VLESS + WS TLS - passed
179+
91=VLESS + WS non TLS - passed
180+
92=VLESS + gRPC - passed
181+
93=
182+
94=Trojan - passed
183+
95=Trojan + WS - passed
184+
96=Trojan + gRPC - passed
185+
97=
186+
98=v0.6
187+
99=+ Trojan protocol support
188+
100=+ Proxy launch control in a separate thread
189+
101=+ Optimization of Vmess/Vless/SS/Trojan configurations
190+
102=
191+
103=v0.5
192+
104=+ Supported protocols: VMESS/VLESS (ws, ws+tls) and SS (without obfs)
193+
105=+ Changed the file type of uploading/saving the list of configurations to *.proxy
194+
106=+ Excluded URL insertion from PopUp menu to save duplicate search
195+
107=
196+
108=v0.4
197+
109=+ Optimization of log output
198+
110=+ Optimization of general perception (visual load)
199+
111=
200+
112=v0.3
201+
113=+ Autostart proxy after reboot
202+
114=+ Disabling xray before updating/deleting rpm/deb (spec)
203+
115=
204+
116=v0.2
205+
117=+ PopUp menu: Paste from clipboard
206+
118=+ Cosmetic edits, hints, etc...
207+
119=
208+
120=v0.1 - initial release

xraygui/unit1.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,9 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
957957
//Не все серверы перешли на эту опцию, временно оставляем (direct) для совместимости
958958
if VlessDecode(VLESSURL, 'security') = 'xtls' then
959959
S.Add(' "flow": "xtls-rprx-direct",');
960-
if VlessDecode(VLESSURL, 'security') = 'reality' then
960+
//XRayGUI-v2.2 (update flow)
961+
if (VlessDecode(VLESSURL, 'security') = 'reality') or
962+
(VlessDecode(VLESSURL, 'flow') = 'xtls-rprx-vision') then
961963
S.Add(' "flow": "' +
962964
VlessDecode(VLESSURL, 'flow') + '",');
963965

xraygui/xraygui

0 Bytes
Binary file not shown.

xraygui/xraygui.lps

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<IsPartOfProject Value="True"/>
4141
<EditorIndex Value="-1"/>
4242
<CursorPos X="19"/>
43-
<UsageCount Value="80"/>
43+
<UsageCount Value="81"/>
4444
</Unit>
4545
<Unit>
4646
<Filename Value="unit1.pas"/>
@@ -50,9 +50,9 @@
5050
<ResourceBaseClass Value="Form"/>
5151
<UnitName Value="Unit1"/>
5252
<IsVisibleTab Value="True"/>
53-
<TopLine Value="966"/>
54-
<CursorPos X="15" Y="975"/>
55-
<UsageCount Value="80"/>
53+
<TopLine Value="950"/>
54+
<CursorPos X="32" Y="960"/>
55+
<UsageCount Value="81"/>
5656
<Loaded Value="True"/>
5757
<LoadedDesigner Value="True"/>
5858
</Unit>
@@ -62,21 +62,21 @@
6262
<EditorIndex Value="-1"/>
6363
<TopLine Value="14"/>
6464
<CursorPos X="19"/>
65-
<UsageCount Value="79"/>
65+
<UsageCount Value="80"/>
6666
</Unit>
6767
<Unit>
6868
<Filename Value="portscan_trd.pas"/>
6969
<IsPartOfProject Value="True"/>
7070
<EditorIndex Value="-1"/>
7171
<CursorPos X="21"/>
72-
<UsageCount Value="59"/>
72+
<UsageCount Value="60"/>
7373
</Unit>
7474
<Unit>
7575
<Filename Value="update_trd.pas"/>
7676
<IsPartOfProject Value="True"/>
7777
<EditorIndex Value="-1"/>
7878
<CursorPos X="20"/>
79-
<UsageCount Value="53"/>
79+
<UsageCount Value="54"/>
8080
</Unit>
8181
<Unit>
8282
<Filename Value="reality_gen.pas"/>
@@ -86,7 +86,7 @@
8686
<ResourceBaseClass Value="Form"/>
8787
<EditorIndex Value="-1"/>
8888
<CursorPos X="19"/>
89-
<UsageCount Value="30"/>
89+
<UsageCount Value="31"/>
9090
</Unit>
9191
</Units>
9292
<JumpHistory HistoryIndex="28">

0 commit comments

Comments
 (0)