hiddifypanel 10.80.11__py3-none-any.whl → 10.80.12.dev1__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/xrayjson.py +32 -14
- hiddifypanel/panel/user/templates/new.html +3 -2
- hiddifypanel/templates/master.html +1 -1
- hiddifypanel/translations/en/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.80.11.dist-info → hiddifypanel-10.80.12.dev1.dist-info}/METADATA +1 -1
- {hiddifypanel-10.80.11.dist-info → hiddifypanel-10.80.12.dev1.dist-info}/RECORD +13 -13
- {hiddifypanel-10.80.11.dist-info → hiddifypanel-10.80.12.dev1.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-10.80.11.dist-info → hiddifypanel-10.80.12.dev1.dist-info}/WHEEL +0 -0
- {hiddifypanel-10.80.11.dist-info → hiddifypanel-10.80.12.dev1.dist-info}/entry_points.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.80.
|
1
|
+
10.80.12.dev1
|
hiddifypanel/VERSION.py
CHANGED
@@ -2,5 +2,5 @@ import importlib.metadata
|
|
2
2
|
from datetime import datetime
|
3
3
|
|
4
4
|
__version__ = importlib.metadata.version(__package__ or __name__)
|
5
|
-
__release_time__= datetime.strptime('2024-12-
|
5
|
+
__release_time__= datetime.strptime('2024-12-19T23:56:56','%Y-%m-%dT%H:%M:%S')
|
6
6
|
is_released_version=True
|
@@ -37,7 +37,8 @@ def configs_as_json(domains: list[Domain], user: User, expire_days: int, remarks
|
|
37
37
|
|
38
38
|
if not user.is_active:
|
39
39
|
# region show status (active/disable)
|
40
|
-
tag = '✖ ' + (hutils.encode.url_encode('بسته شما به پایان رسید')
|
40
|
+
tag = '✖ ' + (hutils.encode.url_encode('بسته شما به پایان رسید')
|
41
|
+
if hconfig(ConfigEnum.lang) == 'fa' else 'Package Ended')
|
41
42
|
# add user status
|
42
43
|
all_configs.append(
|
43
44
|
null_config(tag)
|
@@ -50,7 +51,7 @@ def configs_as_json(domains: list[Domain], user: User, expire_days: int, remarks
|
|
50
51
|
unsupported_transport = {}
|
51
52
|
if g.user_agent.get('is_v2rayng'):
|
52
53
|
# TODO: ensure which protocols are not supported in v2rayng
|
53
|
-
unsupported_protos = {
|
54
|
+
unsupported_protos = {ProxyProto.hysteria, ProxyProto.hysteria2,
|
54
55
|
ProxyProto.tuic, ProxyProto.ssr, ProxyProto.ssh}
|
55
56
|
if not hutils.flask.is_client_version(hutils.flask.ClientVersion.v2ryang, 1, 8, 18):
|
56
57
|
unsupported_transport = {ProxyTransport.httpupgrade}
|
@@ -67,7 +68,8 @@ def configs_as_json(domains: list[Domain], user: User, expire_days: int, remarks
|
|
67
68
|
outbound = to_xray(proxy)
|
68
69
|
outbounds.append(outbound)
|
69
70
|
|
70
|
-
base_config = json.loads(render_template(
|
71
|
+
base_config = json.loads(render_template(
|
72
|
+
'base_xray_config.json.j2', remarks=remarks))
|
71
73
|
if len(outbounds) > 1:
|
72
74
|
for out in outbounds:
|
73
75
|
base = copy.deepcopy(base_config)
|
@@ -85,7 +87,8 @@ def configs_as_json(domains: list[Domain], user: User, expire_days: int, remarks
|
|
85
87
|
if not all_configs:
|
86
88
|
return ''
|
87
89
|
|
88
|
-
json_configs = json.dumps(all_configs, indent=2,
|
90
|
+
json_configs = json.dumps(all_configs, indent=2,
|
91
|
+
cls=hutils.proxy.ProxyJsonEncoder)
|
89
92
|
return json_configs
|
90
93
|
|
91
94
|
|
@@ -100,6 +103,7 @@ def to_xray(proxy: dict) -> dict:
|
|
100
103
|
# # 'concurrency': -1
|
101
104
|
# }
|
102
105
|
}
|
106
|
+
|
103
107
|
outbound['protocol'] = 'shadowsocks' if outbound['protocol'] == 'ss' else outbound['protocol']
|
104
108
|
# add multiplex to outbound
|
105
109
|
add_multiplex(outbound, proxy)
|
@@ -324,8 +328,10 @@ def add_ws_stream(ss: dict, proxy: dict):
|
|
324
328
|
|
325
329
|
def add_grpc_stream(ss: dict, proxy: dict):
|
326
330
|
ss['grpcSettings'] = {
|
327
|
-
|
328
|
-
'
|
331
|
+
# proxy['path'] is equal toproxy['grpc_service_name']
|
332
|
+
'serviceName': proxy['path'],
|
333
|
+
# by default, the health check is not enabled. may solve some "connection drop" issues
|
334
|
+
'idle_timeout': 115,
|
329
335
|
'health_check_timeout': 20, # default is 20
|
330
336
|
# 'initial_windows_size': 0, # 0 means disabled. greater than 65535 means Dynamic Window mechanism will be disabled
|
331
337
|
# 'permit_without_stream': False, # health check performed when there are no sub-connections
|
@@ -342,13 +348,23 @@ def add_httpupgrade_stream(ss: dict, proxy: dict):
|
|
342
348
|
|
343
349
|
|
344
350
|
def add_xhttp_stream(ss: dict, proxy: dict):
|
345
|
-
ss['
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
351
|
+
if ss['transport'] == "xhttp" and not hutils.flask.is_client_version(hutils.flask.ClientVersion.hiddify_next, 3, 0, 0):
|
352
|
+
ss['transport'] = "splithttp"
|
353
|
+
ss['splithttpSettings'] = {
|
354
|
+
'path': proxy['path'],
|
355
|
+
'host': proxy['host'],
|
356
|
+
"headers": {
|
357
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
|
358
|
+
}
|
359
|
+
}
|
360
|
+
else:
|
361
|
+
ss['xhttpSettings'] = {
|
362
|
+
'path': proxy['path'],
|
363
|
+
'host': proxy['host'],
|
364
|
+
"headers": {
|
365
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
|
366
|
+
}
|
350
367
|
}
|
351
|
-
}
|
352
368
|
|
353
369
|
|
354
370
|
def add_kcp_stream(ss: dict, proxy: dict):
|
@@ -400,7 +416,8 @@ def add_tls_fragmentation_stream_settings(base: dict, proxy: dict):
|
|
400
416
|
base['streamSettings']['sockopt'] = {
|
401
417
|
'dialerProxy': 'fragment',
|
402
418
|
'tcpKeepAliveIdle': 100,
|
403
|
-
|
419
|
+
# recommended to be enabled with "tcpMptcp": true.
|
420
|
+
'tcpNoDelay': True,
|
404
421
|
"mark": 255
|
405
422
|
# 'tcpFastOpen': True, # the system default setting be used.
|
406
423
|
# 'tcpKeepAliveInterval': 0, # 0 means default GO lang settings, -1 means not enable
|
@@ -425,6 +442,7 @@ def add_multiplex(base: dict, proxy: dict):
|
|
425
442
|
|
426
443
|
|
427
444
|
def null_config(tag: str) -> dict:
|
428
|
-
base_config = json.loads(render_template(
|
445
|
+
base_config = json.loads(render_template(
|
446
|
+
'base_xray_config.json.j2', remarks=tag))
|
429
447
|
base_config['outbounds'][0]["protocol"] = "blackhole"
|
430
448
|
return base_config
|
@@ -3,8 +3,9 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8" />
|
5
5
|
|
6
|
-
<meta name="apple-itunes-app" content="app-id=
|
7
|
-
|
6
|
+
<meta name="apple-itunes-app" content="app-id=6596777532, app-argument=hiddify://import/{{profile_url}}">
|
7
|
+
<meta name="google-play-app" content="app-id=app.hiddify.com">
|
8
|
+
|
8
9
|
<link rel="icon" type="image/png" href="../static/new/assets/hiddify-logo-7617d937.png" />
|
9
10
|
<!-- <link rel="stylesheet" href="node_modules/smartbanner.js/dist/smartbanner.min.css"> -->
|
10
11
|
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />
|
@@ -153,7 +153,7 @@
|
|
153
153
|
<footer class="main-footer d-flex flex-wrap justify-content-between align-items-center " dir="ltr">
|
154
154
|
<div class="nav col-md-8 d-flex align-items-center">
|
155
155
|
|
156
|
-
<strong><span class="mb-3 mb-md-0 text-muted">©
|
156
|
+
<strong><span class="mb-3 mb-md-0 text-muted">© 2025 Hiddify {{"Central" if hutils.node.is_parent() else
|
157
157
|
""}} <span class="badge">{{version}}</span>
|
158
158
|
</span>
|
159
159
|
</strong>
|
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=RRq8GGnvTzgpGr_DJsOkF4KL1Yrsteo_qSj_9ER2-8M,14
|
3
|
+
hiddifypanel/VERSION.py,sha256=wm3oSRGbJ4foK-RZpFvgzQJSjPFynSjv8waCCEavcGU,227
|
4
4
|
hiddifypanel/__init__.py,sha256=kigwDO8d9jXyPZLvJAWd6zo-GX3pG_xWf-q2aStz80Y,377
|
5
5
|
hiddifypanel/__main__.py,sha256=IVchnXpK6bm8T3N--mN17HBQNLMeLAjyP7iwzULexB4,218
|
6
6
|
hiddifypanel/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -44,7 +44,7 @@ hiddifypanel/hutils/proxy/shared.py,sha256=Zg4qMqp-fzWXHMqZsE1stluVDgT71AlFVlJAx
|
|
44
44
|
hiddifypanel/hutils/proxy/singbox.py,sha256=Fmmzoake-gpnRB5yfTyQvd1dB-10WKwhJt4vhiKzJZQ,11722
|
45
45
|
hiddifypanel/hutils/proxy/wireguard.py,sha256=gij01BYXII-RxAh3Yky0o3yce20HJKeHtu1KNwb0Uzk,934
|
46
46
|
hiddifypanel/hutils/proxy/xray.py,sha256=0vEHL9yq5Si7W_fgI8tn9zwNAWhwBE7djun05cAUDF8,10808
|
47
|
-
hiddifypanel/hutils/proxy/xrayjson.py,sha256=
|
47
|
+
hiddifypanel/hutils/proxy/xrayjson.py,sha256=lS9nUkITMmWVbbxdOrBTO_TW6PZy5ddIJ7N9UNiztXE,15664
|
48
48
|
hiddifypanel/hutils/random.py,sha256=KrsarmRNL05PYzwMxDaDyv-_QcKS0YsZR2z7BnllAqI,1789
|
49
49
|
hiddifypanel/hutils/system.py,sha256=nX7ZvmXKfHu6_cFVOGZRG-7ch2glqgzQL2iWraQc4S0,4350
|
50
50
|
hiddifypanel/hutils/utils.py,sha256=qOvyBFQxBFAV9HYtZn8XVgIauNbVIE2A6WGSpf-NyQM,2349
|
@@ -223,7 +223,7 @@ hiddifypanel/panel/user/templates/home/speedtest.html,sha256=p9crbjv5C3WJZjUBJ-h
|
|
223
223
|
hiddifypanel/panel/user/templates/home/telegram.html,sha256=zjWZy_OnFtTsnPMLASG4mK8aNU3ml9vESz0_5dLHX6A,615
|
224
224
|
hiddifypanel/panel/user/templates/home/usage.html,sha256=fq98jYdYj3acRHGvd2TZ3NTJGAhTjOd06jrjM6jQ93o,3792
|
225
225
|
hiddifypanel/panel/user/templates/home/windows.html,sha256=MbOTheea2aRRh6mwoAXCujk2mTHc7yOWmasf3q84s_c,2967
|
226
|
-
hiddifypanel/panel/user/templates/new.html,sha256=
|
226
|
+
hiddifypanel/panel/user/templates/new.html,sha256=s2IxIPbBffM-_3-vKapVg-3R-Au3l89e4TBMjhcNPyA,1361
|
227
227
|
hiddifypanel/panel/user/templates/redirect_to_new_format.html,sha256=vIS0BdUzpmAiD2c2EBdGON2bCM8equvG_DO39ugXgAM,597
|
228
228
|
hiddifypanel/panel/user/templates/singbox_config.json,sha256=X6hBbJ4DOoNesSOIxwRwZHJW2GwFR19Q8RS81d17idI,5746
|
229
229
|
hiddifypanel/panel/user/user.py,sha256=N9R9igRp0MM2sgJhH8eLxyUflsa-NDeTFUsw3U_f8SM,16654
|
@@ -836,10 +836,10 @@ hiddifypanel/templates/hiddify-flask-admin/actions.html,sha256=2NeITe2e-lPKCk_o5
|
|
836
836
|
hiddifypanel/templates/hiddify-flask-admin/list.html,sha256=MBGrTqZpzNLe4sZy0RozvXNr8seFUQc2C6v88BJtNWc,11095
|
837
837
|
hiddifypanel/templates/lte-master.html,sha256=jYhcNj8SuMOPT35OEG4e1sLWm03Vq53n4ynf3SdOWj4,1585
|
838
838
|
hiddifypanel/templates/macros.html,sha256=HlnXbIMN8i37fVusBdfw0QfVkImnFpZw9zbmtpAT4p8,4139
|
839
|
-
hiddifypanel/templates/master.html,sha256=
|
839
|
+
hiddifypanel/templates/master.html,sha256=xjlR4vxd1tR6RpKgYzknF_oOGIjlgtacslNnzY0vl78,21865
|
840
840
|
hiddifypanel/templates/redirect.html,sha256=K9x_O4P96vEkqBhOXIhoGrWw1KIqd2bL0BjIqmnpZi0,412
|
841
841
|
hiddifypanel/templates/static.html,sha256=jp6q4wtx-k2A_cjqJoNiMS7Ee30arE45qI3ev4d5ky4,165
|
842
|
-
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=
|
842
|
+
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=5ySjLsQw45wrgP-h-woXYjhaNtDv8hK6P_iXNItyAF0,79604
|
843
843
|
hiddifypanel/translations/en/LC_MESSAGES/messages.po,sha256=eNNvmY62F4bHC8rlk6O8pNlYMGweHXCzitL-Fw2bBP4,82892
|
844
844
|
hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=YCMibC3DzLHRq5JJdOdCHTa7FExfnBNWNKXo4PVWyWo,102589
|
845
845
|
hiddifypanel/translations/fa/LC_MESSAGES/messages.po,sha256=TF4W0oSGuIOQxZCtBgczoNB2ESRC8EiFA31KRmszI-o,106919
|
@@ -847,9 +847,9 @@ hiddifypanel/translations/my/LC_MESSAGES/messages.mo,sha256=oxfgQ_GJlw1wnk1MAMeZ
|
|
847
847
|
hiddifypanel/translations/my/LC_MESSAGES/messages.po,sha256=GDSw7x2b8igmALHrrxHFpXrjp1kGFHU52-2mpQ60-Oc,142032
|
848
848
|
hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=EP0fhAEMn4lvzh2omvc0LakfH14AzewlNPQwF6ryUi4,80721
|
849
849
|
hiddifypanel/translations/pt/LC_MESSAGES/messages.po,sha256=xdhe7HAqubClVTN_TMdlg8uCCJHBZzZ7blSrp2YLc_A,84878
|
850
|
-
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=
|
850
|
+
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=X5SR7RhYZJcn5Ac1pdUOJxd4TxXkjjz5U0I80GXGTOs,108498
|
851
851
|
hiddifypanel/translations/ru/LC_MESSAGES/messages.po,sha256=e-9fuA3S7UAU2OwGtECPIJ9l-weY278WMnaSfIqX2cs,112861
|
852
|
-
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=
|
852
|
+
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=ncGjtkqLXZn9D-mDFLoDM1h2Ue1g1m3gKnGHSTBjAEs,75220
|
853
853
|
hiddifypanel/translations/zh/LC_MESSAGES/messages.po,sha256=EatlIsEoHnTj5pL_L0H1O1QTuWPCzZye5eBDsYNnmAk,78988
|
854
854
|
hiddifypanel/translations.i18n/en.json,sha256=owXxIzmsJs-NTBXduY4_MbuXAFRCp7VxLS-oUQGCUTE,72044
|
855
855
|
hiddifypanel/translations.i18n/fa.json,sha256=-kW8SIyKAt7-VIds4x9jl3TnoqTQ-eahtDwEGILEemA,96125
|
@@ -858,8 +858,8 @@ hiddifypanel/translations.i18n/my.json,sha256=1-Zug5NYsqm-9aFPykpDK8yO8u4OgacIko
|
|
858
858
|
hiddifypanel/translations.i18n/pt.json,sha256=MChrAu8VC9XTIxohcGPbDWgJbS1r4wX_23xl-O7jnFw,74195
|
859
859
|
hiddifypanel/translations.i18n/ru.json,sha256=wSad6lsCYcy-v9e0bMyOZQj9eAH6gB4Lx5vRVLzRzLM,101962
|
860
860
|
hiddifypanel/translations.i18n/zh.json,sha256=kcCqJdbWXUKERPZ_b6nhykyM4p4wdCd4prlamXAJXzA,68728
|
861
|
-
hiddifypanel-10.80.
|
862
|
-
hiddifypanel-10.80.
|
863
|
-
hiddifypanel-10.80.
|
864
|
-
hiddifypanel-10.80.
|
865
|
-
hiddifypanel-10.80.
|
861
|
+
hiddifypanel-10.80.12.dev1.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
|
862
|
+
hiddifypanel-10.80.12.dev1.dist-info/METADATA,sha256=vg_o66vf_nmSVOmBwrKsa3Zo4em0vumILPu9JgPzhC0,3963
|
863
|
+
hiddifypanel-10.80.12.dev1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
864
|
+
hiddifypanel-10.80.12.dev1.dist-info/entry_points.txt,sha256=fiVgmdZ7nff9Ow1XnyMFrn1y4akk9gwnDkxpN8P3Xrw,59
|
865
|
+
hiddifypanel-10.80.12.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|