Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hiddifypanel/hutils/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __parse_user_agent(ua: str) -> dict:
res['os_version'] = uaa.os.version
res['is_clash'] = re.match('^(Clash|Stash)', ua, re.IGNORECASE) and True
res['is_clash_meta'] = re.match('^(Clash-verge|Clash-?Meta|Stash|NekoBox|NekoRay|Pharos|hiddify-desktop)', ua, re.IGNORECASE) and True
res['is_singbox'] = re.match('^(HiddifyNext|Dart|SFI|SFA)', ua, re.IGNORECASE) and True
res['is_singbox'] = re.match('^(HiddifyNext|Dart|SFI|SFA|InHive)', ua, re.IGNORECASE) and True
res['is_hiddify'] = re.match('^(HiddifyNext)', ua, re.IGNORECASE) and True
res['is_hiddify_prefere_xray'] = re.match('^(HiddifyNextX)', ua, re.IGNORECASE) and True
res['is_streisand'] = re.match('^(Streisand)', ua, re.IGNORECASE) and True
Expand Down
2 changes: 1 addition & 1 deletion hiddifypanel/panel/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get_proper_config(self):
return None

ua = request.user_agent.string
if g.user_agent['is_singbox'] or re.match('^(HiddifyNext|Dart|SFI|SFA)', ua, re.IGNORECASE):
if g.user_agent['is_singbox'] or re.match('^(HiddifyNext|Dart|SFI|SFA|InHive)', ua, re.IGNORECASE):
return self.full_singbox_imp()

if re.match('^(Clash-verge|Clash-?Meta|Stash|NekoBox|NekoRay|Pharos|hiddify-desktop)', ua, re.IGNORECASE):
Expand Down
Loading