dyhkwong / Exclave

A fork of SagerNet powered by V2Ray and its derivatives
https://t.me/exclavian
Other
609 stars 38 forks source link

Subscription user information sent in v2board header is not displayed #53

Closed demianrey closed 4 months ago

demianrey commented 4 months ago

Hello, just that, the information such as remaining traffic and expiration is not shown in the group. Regards

dyhkwong commented 4 months ago

https://github.com/v2board/v2board/blob/0ca47622a50116d0ddd7ffb316b157afb57d25e8/app/Http/Controllers/Client/Protocols/QuantumultX.php#L23

It seems that v2board only sets subscription-userinfo header when using the user-agent of popular iOS proxy software, and there is of course no support for the original SagerNet. However, this app does not support paring subscription formats from those proprietary iOS proxy software. I don't have an iOS device, so this will not be working on unless someone makes a pull request.

demianrey commented 4 months ago

detects the import with clash and clash from v2board has the header subscription-userinfo

https://github.com/v2board/v2board/blob/0ca47622a50116d0ddd7ffb316b157afb57d25e8/app/Http/Controllers/Client/Protocols/ClashMeta.php#L25

dyhkwong commented 4 months ago

So are you using a clash user-agent?

demianrey commented 4 months ago

So are you using a clash user-agent?

v2board detects your application when exporting, a good idea would be to show the information in the group menu

dyhkwong commented 4 months ago

curl/8.8.0 are used as the default user-agent. I know nothing about your environment, so please elaborate what user-agent are you using, and what is returned when curl -A your_user_agent -vvv your_subscription_link. If there are sensitive things to post, use this GPG public key. Try ClashMetaForAndroid/2.10.1 if you are not using a clash user-agent.

dyhkwong commented 4 months ago

作者能不能更改一下用户代理很多订阅获取不到节点

自行修改