hiddifypanel 10.80.10__py3-none-any.whl → 10.80.12.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/xrayjson.py +32 -14
- 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.10.dist-info → hiddifypanel-10.80.12.dev0.dist-info}/METADATA +1 -1
- {hiddifypanel-10.80.10.dist-info → hiddifypanel-10.80.12.dev0.dist-info}/RECORD +11 -11
- {hiddifypanel-10.80.10.dist-info → hiddifypanel-10.80.12.dev0.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-10.80.10.dist-info → hiddifypanel-10.80.12.dev0.dist-info}/WHEEL +0 -0
- {hiddifypanel-10.80.10.dist-info → hiddifypanel-10.80.12.dev0.dist-info}/entry_points.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.80.
|
1
|
+
10.80.12.dev0
|
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:50:29','%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
|
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=Rf397DaOr-jpB3CLSyh_VWa2PNnP-xelh6PDTBTO95c,14
|
3
|
+
hiddifypanel/VERSION.py,sha256=cvsEK5rUg6ewjxN86v85mO6_WbG6hiU9Ko5aX5tQM_w,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
|
@@ -839,7 +839,7 @@ hiddifypanel/templates/macros.html,sha256=HlnXbIMN8i37fVusBdfw0QfVkImnFpZw9zbmtp
|
|
839
839
|
hiddifypanel/templates/master.html,sha256=MduWpnW-_ksXxPb1fSOYJC0SKEYnAJ8i4XwX7AUZj38,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=i7XLQXFb_BDmHl6STz9hDgi2uXAlt2K4piA_eEGWG-0,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=i-TTHDGBzyXBpMxS7bWxvwkw_E8IQfPFnkSv8DN4yWA,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=aCkdH_y6ahh_hHibX4SWhZwEIzc_r6jueZKKRqwhK4E,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.dev0.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
|
862
|
+
hiddifypanel-10.80.12.dev0.dist-info/METADATA,sha256=TtrqH-Cb2oLZ5-M0TCorf3a3W0LwAD3a8legCHxgfus,3963
|
863
|
+
hiddifypanel-10.80.12.dev0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
864
|
+
hiddifypanel-10.80.12.dev0.dist-info/entry_points.txt,sha256=fiVgmdZ7nff9Ow1XnyMFrn1y4akk9gwnDkxpN8P3Xrw,59
|
865
|
+
hiddifypanel-10.80.12.dev0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|