Skip to content

Commit 1dab144

Browse files
committed
v2.3.3 + XHTTP support
1 parent 0c8f22b commit 1dab144

File tree

18 files changed

+220
-181
lines changed

18 files changed

+220
-181
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A small and nimble GUI for [XRay-core](https://github.com/XTLS/Xray-core): launc
88
**Support (without obfs):**
99
+ Shadowsocks
1010
+ VMESS, + TLS, + WS, + WS + TLS, + KCP, + gRPC
11-
+ VLESS, + TLS, + WS, + WS + TLS, + gRPC, + gRPC + TLS, + KCP, + REALITY
11+
+ VLESS, + TLS, + WS, + WS + TLS, + gRPC, + gRPC + TLS, + KCP, + REALITY, + XHTTP
1212
+ Trojan, + WS, + gRPC
1313

1414
Starting with `XRayGUI-v1.6`, support for `XTLS-Reality` and a generator of simple but reliable Client-Server configurations have been introduced ("R" button).

xraygui/backup/unit1.lfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object MainForm: TMainForm
22
Left = 299
33
Height = 722
4-
Top = 137
4+
Top = 110
55
Width = 1003
66
ActiveControl = Panel1
77
Caption = 'XRayGUI'

xraygui/backup/unit1.pas

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,12 +966,19 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
966966
VlessDecode(VLESSURL, 'encryption') + '",');
967967
//Deprecate xtls-rprx-direct/xtls-rprx-vision #445: https://github.com/wulabing/Xray_onekey/issues/445
968968
//Не все серверы перешли на эту опцию, временно оставляем (direct) для совместимости
969-
if VlessDecode(VLESSURL, 'security') = 'xtls' then
969+
{ if VlessDecode(VLESSURL, 'security') = 'xtls' then
970970
S.Add(' "flow": "xtls-rprx-direct",');
971971
//XRayGUI-v2.2 (update flow)
972972
if (VlessDecode(VLESSURL, 'security') = 'reality') or
973973
(VlessDecode(VLESSURL, 'flow') = 'xtls-rprx-vision') then
974974
S.Add(' "flow": "xtls-rprx-vision' + '",');
975+
}
976+
977+
if (VlessDecode(VLESSURL, 'flow') = 'none') then
978+
S.Add(' "flow": "",')
979+
else
980+
S.Add(' "flow": "' +
981+
VlessDecode(VLESSURL, 'flow') + '",');
975982

976983
//ID
977984
S.Add(' "id": "' +
@@ -984,6 +991,16 @@ procedure TMainForm.CreateVLESSConfig(VLESSURL, PORT, SAVEPATH: string);
984991
S.Add(' },');
985992
S.Add(' "streamSettings": {');
986993

994+
//if XHTTP
995+
if VlessDecode(VLESSURL, 'type') = 'xhttp' then
996+
begin
997+
S.Add(' "xhttpSettings": {');
998+
S.Add(' "path": "' + VlessDecode(VLESSURL, 'path') + '",');
999+
S.Add(' "hostname": "' +
1000+
VlessDecode(VLESSURL, 'host') + '"');
1001+
S.Add(' },');
1002+
end;
1003+
9871004
//if gRPC
9881005
if VlessDecode(VLESSURL, 'type') = 'grpc' then
9891006
begin

xraygui/backup/xraygui.lpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Version Value="12"/>
55
<General>
66
<SessionStorage Value="InProjectDir"/>
7-
<Title Value="XRayGUI v2.3.1"/>
7+
<Title Value="XRayGUI v2.3.3"/>
88
<Scaled Value="True"/>
99
<ResourceType Value="res"/>
1010
<UseXPManifest Value="True"/>

xraygui/backup/xraygui.lps

Lines changed: 16 additions & 16 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="81"/>
43+
<UsageCount Value="82"/>
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="956"/>
54-
<CursorPos X="17" Y="962"/>
55-
<UsageCount Value="81"/>
53+
<TopLine Value="1714"/>
54+
<CursorPos X="38" Y="1742"/>
55+
<UsageCount Value="82"/>
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="80"/>
65+
<UsageCount Value="81"/>
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="60"/>
72+
<UsageCount Value="61"/>
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="54"/>
79+
<UsageCount Value="55"/>
8080
</Unit>
8181
<Unit>
8282
<Filename Value="reality_gen.pas"/>
@@ -86,18 +86,10 @@
8686
<ResourceBaseClass Value="Form"/>
8787
<EditorIndex Value="-1"/>
8888
<CursorPos X="19"/>
89-
<UsageCount Value="31"/>
89+
<UsageCount Value="32"/>
9090
</Unit>
9191
</Units>
9292
<JumpHistory HistoryIndex="29">
93-
<Position>
94-
<Filename Value="unit1.pas"/>
95-
<Caret Column="13"/>
96-
</Position>
97-
<Position>
98-
<Filename Value="unit1.pas"/>
99-
<Caret Line="1337" Column="37" TopLine="680"/>
100-
</Position>
10193
<Position>
10294
<Filename Value="unit1.pas"/>
10395
<Caret Line="1339" Column="37" TopLine="1309"/>
@@ -210,6 +202,14 @@
210202
<Filename Value="unit1.pas"/>
211203
<Caret Line="1726" Column="40" TopLine="1654"/>
212204
</Position>
205+
<Position>
206+
<Filename Value="unit1.pas"/>
207+
<Caret Line="999" Column="43" TopLine="980"/>
208+
</Position>
209+
<Position>
210+
<Filename Value="unit1.pas"/>
211+
<Caret Line="1564" Column="3" TopLine="1561"/>
212+
</Position>
213213
</JumpHistory>
214214
<RunParams>
215215
<FormatVersion Value="2"/>
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

xraygui/lib/x86_64-linux/unit1.o

3.63 KB
Binary file not shown.

xraygui/lib/x86_64-linux/unit1.ppu

271 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)