hiddifypanel 10.80.0.dev15__py3-none-any.whl → 10.80.0.dev17__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 CHANGED
@@ -1 +1 @@
1
- 10.80.0.dev15
1
+ 10.80.0.dev17
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-08T23:50:34','%Y-%m-%dT%H:%M:%S')
5
+ __release_time__= datetime.strptime('2024-12-11T02:29:51','%Y-%m-%dT%H:%M:%S')
6
6
  is_released_version=True
@@ -153,7 +153,10 @@ def add_or_update_config(commit: bool = True, child_id: int | None = None, overr
153
153
  if child_id is None:
154
154
  child_id = Child.current().id
155
155
  c = config['key']
156
- ckey = ConfigEnum(c)
156
+ try:
157
+ ckey = ConfigEnum(c)
158
+ except:
159
+ return
157
160
  if c == ConfigEnum.unique_id and not override_unique_id:
158
161
  return
159
162
 
@@ -281,7 +281,8 @@ class DomainAdmin(AdminLTEModelView):
281
281
  # Skip validation for wildcard or empty domains
282
282
  if model.domain.startswith('*') or not model.domain:
283
283
  return True
284
-
284
+ if model.mode in [DomainType.fake, DomainType.reality, DomainType.relay]:
285
+ return True
285
286
  # Resolve domain IPs with timeout
286
287
  try:
287
288
  dips = hutils.network.get_domain_ips(model.domain, timeout=10)