Skip to content

Commit

Permalink
enable the special protocols support by default when the environment …
Browse files Browse the repository at this point in the history
…variable is empty
  • Loading branch information
wzdnzd committed Aug 5, 2024
1 parent 4d13d89 commit 485ebc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subscribe/airport.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,4 +719,5 @@ def clean_text(document: str) -> str:

@staticmethod
def enable_special_protocols() -> bool:
return os.environ.get("ENABLE_SPECIAL_PROTOCOLS", "true").lower() in ["true", "1"] and is_mihomo()
flag = utils.trim(os.environ.get("ENABLE_SPECIAL_PROTOCOLS", "true")).lower()
return (flag == "" or flag in ["true", "1"]) and is_mihomo()

0 comments on commit 485ebc6

Please sign in to comment.