vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.54k stars 3.05k forks source link

[Feature] 根据目前设置的clash内核来使用不同的User Agent请求订阅链接 #3508

Closed kogekiplay closed 9 months ago

kogekiplay commented 11 months ago

Verify Steps

Describe the Feature

如题,部分机场普通订阅会根据UA请求下发不同的订阅,例如V2board,若UA为"clash"则下发clash订阅,若UA包含"meta"则下发除了ss以外的更多协议(etc:vless,tuic),希望在设置默认内核为"meta"核心时,不是使用默认ua,"clash"而是使用包含"clashmeta"的ua请求订阅。 虽然机场主也会提供meta的订阅链接(订阅链接+&flag=meta),但是希望可以根据meta的ua通过普通订阅也能获取到更多的节点。

Describe the Solution

目前看到无论什么情况,ua都是"clash",希望可以根据内核来区分不同的ua,谢谢作者有空可以采纳并跟进下我的issue,谢谢!

Describe Alternatives

No response

Additional Context

image

图片:V2board不同客户端适配的php文件,根据ua智能判断客户端

vernesong commented 11 months ago

这个只能做选项,直接替换不适合所有人

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days