hiddifypanel 9.0.0.dev40__py3-none-any.whl → 9.0.0.dev42__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/panel/admin/SettingAdmin.py +1 -1
- hiddifypanel/panel/hiddify.py +2 -3
- hiddifypanel/translations/en/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/en/LC_MESSAGES/messages.po +4193 -3071
- hiddifypanel/translations/fa/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/fa/LC_MESSAGES/messages.po +4429 -3590
- hiddifypanel/translations/pt/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/pt/LC_MESSAGES/messages.po +3797 -2484
- hiddifypanel/translations/ru/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/ru/LC_MESSAGES/messages.po +3351 -2487
- hiddifypanel/translations/zh/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/zh/LC_MESSAGES/messages.po +4117 -3078
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/METADATA +1 -1
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/RECORD +20 -20
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/WHEEL +0 -0
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/entry_points.txt +0 -0
- {hiddifypanel-9.0.0.dev40.dist-info → hiddifypanel-9.0.0.dev42.dist-info}/top_level.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
9.0.0.
|
1
|
+
9.0.0.dev42
|
hiddifypanel/VERSION.py
CHANGED
@@ -77,7 +77,7 @@ class SettingAdmin(FlaskView):
|
|
77
77
|
# print(cat,vs)
|
78
78
|
|
79
79
|
merged_configs = {**old_configs, **changed_configs}
|
80
|
-
if len(set([merged_configs[ConfigEnum.proxy_path], merged_configs[ConfigEnum.proxy_path_client], merged_configs[ConfigEnum.proxy_path_admin])) != 3:
|
80
|
+
if len(set([merged_configs[ConfigEnum.proxy_path], merged_configs[ConfigEnum.proxy_path_client], merged_configs[ConfigEnum.proxy_path_admin]])) != 3:
|
81
81
|
flash(_("ProxyPath is already used! use different proxy path"), 'error')
|
82
82
|
return render_template('config.html', form=form)
|
83
83
|
# for k in [ConfigEnum.reality_server_names,ConfigEnum.reality_fallback_domain]:
|
hiddifypanel/panel/hiddify.py
CHANGED
@@ -178,12 +178,12 @@ def is_admin_role(role: Role):
|
|
178
178
|
|
179
179
|
def is_admin_proxy_path() -> bool:
|
180
180
|
proxy_path = g.get('proxy_path') or get_proxy_path_from_url(request.url)
|
181
|
-
return proxy_path in [hconfig(ConfigEnum.proxy_path_admin)
|
181
|
+
return proxy_path in [hconfig(ConfigEnum.proxy_path_admin)] or (proxy_path in [hconfig(ConfigEnum.proxy_path)] and "/admin/" in request.path)
|
182
182
|
|
183
183
|
|
184
184
|
def is_client_proxy_path() -> bool:
|
185
185
|
proxy_path = g.get('proxy_path') or get_proxy_path_from_url(request.url)
|
186
|
-
return proxy_path in [hconfig(ConfigEnum.proxy_path_client)
|
186
|
+
return proxy_path in [hconfig(ConfigEnum.proxy_path_client)] or (proxy_path in [hconfig(ConfigEnum.proxy_path)] and "/admin/" not in request.path)
|
187
187
|
|
188
188
|
|
189
189
|
def proxy_path_validator(proxy_path):
|
@@ -896,7 +896,6 @@ def get_account_panel_link(account: BaseAccount, host: str, is_https: bool = Tru
|
|
896
896
|
return link
|
897
897
|
|
898
898
|
|
899
|
-
|
900
899
|
def is_valid_uuid(val: str, version: int | None = None):
|
901
900
|
try:
|
902
901
|
uuid.UUID(val, version=version)
|
Binary file
|