dyhkwong / Exclave

A fork of SagerNet powered by V2Ray and its derivatives
Other
448 stars 26 forks source link

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

Closed demianrey closed 1 month ago

demianrey commented 1 month ago

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

dyhkwong commented 1 month 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 1 month 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 1 month ago

So are you using a clash user-agent?

demianrey commented 1 month 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 1 month 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 1 month ago

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

自行修改