1 parent adbffcb commit e71597aCopy full SHA for e71597a
1 file changed
subscribe/clash.py
@@ -632,8 +632,13 @@ def verify(item: dict, mihomo: bool = True) -> bool:
632
authentication = "password"
633
if "obfs" in item:
634
obfs = utils.trim(item.get("obfs", ""))
635
- if obfs != "salamander":
636
- return False
+ if obfs:
+ if obfs != "salamander":
637
+ return False
638
+ obfs_password = utils.trim(item.get("obfs-password", ""))
639
+ if not obfs_password:
640
641
+
642
if "obfs-password" in item and type(item["obfs-password"]) != str:
643
return False
644
else:
0 commit comments