Skip to content

Commit 20b5c09

Browse files
committed
v2.2 + Fix vless-grpc configuration (serviceName)
1 parent 4a9d69e commit 20b5c09

File tree

8 files changed

+143
-131
lines changed

8 files changed

+143
-131
lines changed

xraygui/backup/unit1.pas

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -973,11 +973,13 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
973973
S.Add(' "streamSettings": {');
974974

975975
//if gRPC
976-
if Pos('type=grpc', VLESSURL) <> 0 then
976+
//if Pos('type=grpc', VLESSURL) <> 0 then
977+
if VlessDecode(VLESSURL, 'type') = 'grpc' then
977978
begin
978979
S.Add(' "grpcSettings": {');
979980
S.Add(' "multiMode": false,');
980-
S.Add(' "serviceName": "grpc"');
981+
//S.Add(' "serviceName": "vless-grpc"');
982+
S.Add(' "serviceName": "' + VlessDecode(VLESSURL, 'serviceName') + '"');
981983
S.Add(' },');
982984
end;
983985

@@ -1712,13 +1714,13 @@ procedure TMainForm.FormShow(Sender: TObject);
17121714
FUpdateThread.Priority := tpNormal;
17131715
end;
17141716

1715-
//Восстанавливаем индекс Check
1717+
//Восстанавливаем индекс Check (если есть) + ItemIndex ставим на Check
17161718
procedure TMainForm.IniPropStorage1RestoreProperties(Sender: TObject);
17171719
begin
17181720
if IniPropStorage1.ReadInteger('findex', 100) <> 100 then
17191721
begin
17201722
ConfigBox.Checked[IniPropStorage1.ReadInteger('findex', 100)] := True;
1721-
ConfigBox.ItemIndex:=IniPropStorage1.ReadInteger('findex', 100);
1723+
ConfigBox.ItemIndex := IniPropStorage1.ReadInteger('findex', 100);
17221724
end;
17231725
end;
17241726

xraygui/backup/xraygui.lps

Lines changed: 7 additions & 3 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="1706"/>
54-
<CursorPos X="68" Y="1721"/>
53+
<TopLine Value="966"/>
54+
<CursorPos X="44" Y="986"/>
5555
<UsageCount Value="80"/>
5656
<Loaded Value="True"/>
5757
<LoadedDesigner Value="True"/>
@@ -89,7 +89,7 @@
8989
<UsageCount Value="30"/>
9090
</Unit>
9191
</Units>
92-
<JumpHistory HistoryIndex="27">
92+
<JumpHistory HistoryIndex="28">
9393
<Position>
9494
<Filename Value="unit1.pas"/>
9595
<Caret Line="196" TopLine="191"/>
@@ -202,6 +202,10 @@
202202
<Filename Value="unit1.pas"/>
203203
<Caret Line="1721" Column="70" TopLine="1715"/>
204204
</Position>
205+
<Position>
206+
<Filename Value="unit1.pas"/>
207+
<Caret Line="1711" Column="52" TopLine="1670"/>
208+
</Position>
205209
</JumpHistory>
206210
<RunParams>
207211
<FormatVersion Value="2"/>

xraygui/lib/x86_64-linux/unit1.o

1 KB
Binary file not shown.

xraygui/lib/x86_64-linux/unit1.ppu

67 Bytes
Binary file not shown.

xraygui/package_project/xraygui.prj

Lines changed: 119 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -86,121 +86,122 @@ toolversion=3.2
8686

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

xraygui/unit1.pas

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,16 +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
976+
if VlessDecode(VLESSURL, 'type') = 'grpc' then
977977
begin
978978
S.Add(' "grpcSettings": {');
979979
S.Add(' "multiMode": false,');
980-
S.Add(' "serviceName": "grpc"');
980+
S.Add(' "serviceName": "' +
981+
VlessDecode(VLESSURL, 'serviceName') + '"');
981982
S.Add(' },');
982983
end;
983984

984985
//if KCP
985-
if Pos('type=kcp', VLESSURL) <> 0 then
986+
if VlessDecode(VLESSURL, 'type') = 'kcp' then
986987
begin
987988
S.Add(' "kcpSettings": {');
988989
S.Add(' "seed": "' + VlessDecode(VLESSURL, 'seed') + '"');

xraygui/xraygui

0 Bytes
Binary file not shown.

xraygui/xraygui.lps

Lines changed: 7 additions & 3 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="1706"/>
54-
<CursorPos X="71" Y="1715"/>
53+
<TopLine Value="966"/>
54+
<CursorPos X="15" Y="975"/>
5555
<UsageCount Value="80"/>
5656
<Loaded Value="True"/>
5757
<LoadedDesigner Value="True"/>
@@ -89,7 +89,7 @@
8989
<UsageCount Value="30"/>
9090
</Unit>
9191
</Units>
92-
<JumpHistory HistoryIndex="27">
92+
<JumpHistory HistoryIndex="28">
9393
<Position>
9494
<Filename Value="unit1.pas"/>
9595
<Caret Line="196" TopLine="191"/>
@@ -202,6 +202,10 @@
202202
<Filename Value="unit1.pas"/>
203203
<Caret Line="1721" Column="70" TopLine="1715"/>
204204
</Position>
205+
<Position>
206+
<Filename Value="unit1.pas"/>
207+
<Caret Line="1711" Column="52" TopLine="1670"/>
208+
</Position>
205209
</JumpHistory>
206210
<RunParams>
207211
<FormatVersion Value="2"/>

0 commit comments

Comments
 (0)