hiddifypanel 10.50.6.dev0__py3-none-any.whl → 10.60.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hiddifypanel/VERSION +1 -1
- hiddifypanel/VERSION.py +1 -1
- hiddifypanel/hutils/proxy/singbox.py +13 -0
- hiddifypanel/hutils/proxy/xray.py +3 -0
- hiddifypanel/translations/en/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/fa/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/pt/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/ru/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/zh/LC_MESSAGES/messages.mo +0 -0
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/METADATA +1 -1
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/RECORD +15 -15
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/WHEEL +0 -0
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/entry_points.txt +0 -0
- {hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/top_level.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.60.0.dev0
|
hiddifypanel/VERSION.py
CHANGED
@@ -2,6 +2,7 @@ from flask import render_template, request, g
|
|
2
2
|
import json
|
3
3
|
|
4
4
|
from hiddifypanel import hutils
|
5
|
+
from hiddifypanel.hutils.proxy.xrayjson import to_xray
|
5
6
|
from hiddifypanel.models import ProxyProto, ProxyTransport, Domain, ConfigEnum
|
6
7
|
|
7
8
|
|
@@ -43,6 +44,12 @@ def configs_as_json(domains: list[Domain], **kwargs) -> str:
|
|
43
44
|
return res
|
44
45
|
|
45
46
|
|
47
|
+
def is_xray_proxy(proxy: dict):
|
48
|
+
if proxy['transport'] == ProxyTransport.splithttp:
|
49
|
+
return True
|
50
|
+
return False
|
51
|
+
|
52
|
+
|
46
53
|
def to_singbox(proxy: dict) -> list[dict] | dict:
|
47
54
|
name = proxy['name']
|
48
55
|
|
@@ -54,6 +61,12 @@ def to_singbox(proxy: dict) -> list[dict] | dict:
|
|
54
61
|
all_base.append(base)
|
55
62
|
# vmess ws
|
56
63
|
base["tag"] = f"""{proxy['extra_info']} {proxy["name"]} § {proxy['port']} {proxy["dbdomain"].id}"""
|
64
|
+
if is_xray_proxy(proxy):
|
65
|
+
if hutils.flask.is_client_version(hutils.flask.ClientVersion.hiddify_next, 1, 9, 0):
|
66
|
+
base['type'] = "xray"
|
67
|
+
base['xray_outbound_raw'] = to_xray(proxy)
|
68
|
+
return all_base
|
69
|
+
return {'name': name, 'msg': "xray proxy does not support in this client version", 'type': 'debug'}
|
57
70
|
base["type"] = str(proxy["proto"])
|
58
71
|
base["server"] = proxy["server"]
|
59
72
|
base["server_port"] = int(proxy["port"])
|
@@ -126,11 +126,14 @@ def to_link(proxy: dict) -> str | dict:
|
|
126
126
|
baseurl += "&encryption=none"
|
127
127
|
if proxy.get('fingerprint', 'none') != 'none':
|
128
128
|
baseurl += "&fp=" + proxy['fingerprint']
|
129
|
+
if proxy.get('transport') in {ProxyTransport.splithttp}:
|
130
|
+
baseurl += "&core=xray"
|
129
131
|
if proxy['l3'] != 'quic':
|
130
132
|
if proxy.get('l3') != ProxyL3.reality and (proxy.get('transport') in {ProxyTransport.tcp, ProxyTransport.httpupgrade, ProxyTransport.splithttp}) and proxy['proto'] in [ProxyProto.vless, ProxyProto.trojan]:
|
131
133
|
baseurl += '&headerType=http'
|
132
134
|
else:
|
133
135
|
baseurl += '&headerType=None'
|
136
|
+
|
134
137
|
if proxy['mode'] == 'Fake' or proxy['allow_insecure']:
|
135
138
|
baseurl += "&allowInsecure=true"
|
136
139
|
if proxy.get('flow'):
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
hiddifypanel/Events.py,sha256=AlnRdjVul0jP-NCT4-zoaQgowoOo-JhdQB4ytetAFKA,723
|
2
|
-
hiddifypanel/VERSION,sha256=
|
3
|
-
hiddifypanel/VERSION.py,sha256=
|
2
|
+
hiddifypanel/VERSION,sha256=VCrHC0wil_AmxhacgnHPQ-opC9U_UgW1gYef9nhSbSU,13
|
3
|
+
hiddifypanel/VERSION.py,sha256=XFis0VtVAPuxkI3PFLDQCgCU5qtjcMsUiv5X-ytKXRM,118
|
4
4
|
hiddifypanel/__init__.py,sha256=aLukp3ORszdcH4G9J-MlxhjHN6yFlOuOE6mm-L3aG_g,266
|
5
5
|
hiddifypanel/__main__.py,sha256=IVchnXpK6bm8T3N--mN17HBQNLMeLAjyP7iwzULexB4,218
|
6
6
|
hiddifypanel/auth.py,sha256=Xq0UwiFTRFmQpxnOehQGwPDlJqoelwGhPQbYZ0Xn5c0,7850
|
@@ -38,8 +38,8 @@ hiddifypanel/hutils/node/shared.py,sha256=FDSj3e-i3pb3mEv5vcUeX0Km1nxYg1CeAruIq7
|
|
38
38
|
hiddifypanel/hutils/proxy/__init__.py,sha256=xXBa83kjYT_b-BNseEykfQYyJBQHTq1ZosfR8ZrQHkI,106
|
39
39
|
hiddifypanel/hutils/proxy/clash.py,sha256=t57ywMo2TPpnAIuOn9v5gMD2os7zqS9b4NQtFX-Do5s,5813
|
40
40
|
hiddifypanel/hutils/proxy/shared.py,sha256=cQ49Vi23MKtvY9hpjb_1HTo2zc0C-TlSabY6uMfFPtc,22175
|
41
|
-
hiddifypanel/hutils/proxy/singbox.py,sha256=
|
42
|
-
hiddifypanel/hutils/proxy/xray.py,sha256=
|
41
|
+
hiddifypanel/hutils/proxy/singbox.py,sha256=vBVSJ0r4TRri1ErtVo7qm-yS3xXTSYoTdUGF2rczkm8,11314
|
42
|
+
hiddifypanel/hutils/proxy/xray.py,sha256=sw_g1xhIBAyCQ4cymorrHJSw2u4LOAJ41slmvxwsz5c,10788
|
43
43
|
hiddifypanel/hutils/proxy/xrayjson.py,sha256=TsnOHM5IUAn5AVEsboVVTLzDLS93EU67SqasHm1y6BA,14796
|
44
44
|
hiddifypanel/models/__init__.py,sha256=PngFjQL9WvQP4EioNHRz1tTeyIgLoNvZ7WpmAhwKHnU,677
|
45
45
|
hiddifypanel/models/admin.py,sha256=qZ-BRJ_Gn6hJNWz35SQQSds1CoeDslU9B0MDBRhjPSM,7596
|
@@ -822,24 +822,24 @@ hiddifypanel/templates/redirect.html,sha256=K9x_O4P96vEkqBhOXIhoGrWw1KIqd2bL0BjI
|
|
822
822
|
hiddifypanel/templates/static.html,sha256=jp6q4wtx-k2A_cjqJoNiMS7Ee30arE45qI3ev4d5ky4,165
|
823
823
|
hiddifypanel/templates/hiddify-flask-admin/actions.html,sha256=2NeITe2e-lPKCk_o511tCIqVtrPu8LYHE1wTCtrFUrI,1331
|
824
824
|
hiddifypanel/templates/hiddify-flask-admin/list.html,sha256=MBGrTqZpzNLe4sZy0RozvXNr8seFUQc2C6v88BJtNWc,11095
|
825
|
-
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=
|
825
|
+
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=jN9uYK-lVyJbrf6jROTVsSNOf-hpEbPC-9FRZyuXVQ0,76130
|
826
826
|
hiddifypanel/translations/en/LC_MESSAGES/messages.po,sha256=Y8Y9o8Zn_GvhCt9Zdzb2blxmAQ-Y9h_y5uQsJipHWJc,79318
|
827
|
-
hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=
|
827
|
+
hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=HHOUGfvLrMD0T2Eg_dJbEkne9Ti695umdItH8f6PHxg,96032
|
828
828
|
hiddifypanel/translations/fa/LC_MESSAGES/messages.po,sha256=Y96y6EONrEJ_BoBuItNlfZzQeF2i8klKGpqTmYIPM5k,101692
|
829
|
-
hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=
|
829
|
+
hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=vLDlPZEYaTR0sFZUnrIl6OBOsVQ1oJYPuHmoBtuXmY0,58587
|
830
830
|
hiddifypanel/translations/pt/LC_MESSAGES/messages.po,sha256=00MqGOmJzYUArU68jKqQWwkxdR0-jno43nJw141tXyM,69622
|
831
|
-
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=
|
831
|
+
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=nXXdXsX_jTHtECFeebkyvcKIziPMjrkLXnHYt0OcK7k,97554
|
832
832
|
hiddifypanel/translations/ru/LC_MESSAGES/messages.po,sha256=M7sHePHrlQQb7UHEomO0qk4c_XLL_X0Fn9ikUQRW3PQ,104841
|
833
|
-
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=
|
833
|
+
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=6IK55CKd8uPTti6wc1h7-CtsDWzHW89cwMbhdmCIj6w,58920
|
834
834
|
hiddifypanel/translations/zh/LC_MESSAGES/messages.po,sha256=8J-vgc8C1ORaL2kyHPPynEZHpHy2cFAcYyiGAL2ZIcU,68866
|
835
835
|
hiddifypanel/translations.i18n/en.json,sha256=dozE6mTry3rC-Byvp4dH85lctEB_Yjz2WBZSDzfgIf8,68885
|
836
836
|
hiddifypanel/translations.i18n/fa.json,sha256=TD8Tsyq6ieJv4RGw6jWtRHstQHGNB-zJfTfug-9i_KA,91256
|
837
837
|
hiddifypanel/translations.i18n/pt.json,sha256=UiG2f9A8q320T7Ku_3HlASOVVk9pCaUZlgYwUDlFKXA,59558
|
838
838
|
hiddifypanel/translations.i18n/ru.json,sha256=QRoRoF_RiIvpMD31T14Y9QgFtNuFqj_Hl5-hjOBQIpI,94378
|
839
839
|
hiddifypanel/translations.i18n/zh.json,sha256=q2kenW7YBiqaZLFb5o_23yrAhbAMSSpgqfDuV8qwUCA,59042
|
840
|
-
hiddifypanel-10.
|
841
|
-
hiddifypanel-10.
|
842
|
-
hiddifypanel-10.
|
843
|
-
hiddifypanel-10.
|
844
|
-
hiddifypanel-10.
|
845
|
-
hiddifypanel-10.
|
840
|
+
hiddifypanel-10.60.0.dev0.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
|
841
|
+
hiddifypanel-10.60.0.dev0.dist-info/METADATA,sha256=WOx1hSl6xojX8Q3X1LKEVCP1rWNpEVbbt6mE8zGsDPM,4044
|
842
|
+
hiddifypanel-10.60.0.dev0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
843
|
+
hiddifypanel-10.60.0.dev0.dist-info/entry_points.txt,sha256=Xzpqlh3nwBtZhoV9AANJykano056VJvYzaujxPztJaM,60
|
844
|
+
hiddifypanel-10.60.0.dev0.dist-info/top_level.txt,sha256=rv-b3qFWUZQTBy0kyBfsr7L6tPpeO7AaQlLHXn-HI5M,13
|
845
|
+
hiddifypanel-10.60.0.dev0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{hiddifypanel-10.50.6.dev0.dist-info → hiddifypanel-10.60.0.dev0.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|