asdlokj1qpi23 / subconverter

Utility to convert between various subscription format.Support hy2、hy and vless for singbox and clash meta
GNU General Public License v3.0
180 stars 32 forks source link

[Feature] 增加singbox作为来源 #4

Closed donnanszex7654 closed 6 months ago

donnanszex7654 commented 6 months ago

verify

功能描述

其他的订阅可以转换为singbox,但是singbox的订阅无法转换为其他的订阅,能否增加将singbox转为其他订阅的功能。

可能的解决方案

No response

ghost commented 6 months ago

+1,之前我在上游库 issues 也提过类似的需求,但没得到作者的回应。从功能完整性角度来说,实现互转真的很有用

asdlokj1qpi23 commented 6 months ago

Please wait, this feature will be updated when there is time.

ghost commented 6 months ago

Thank you, looking forward to it.

asdlokj1qpi23 commented 6 months ago

The feature has been added. Please try the latest version of the image to see if it is working.

ghost commented 6 months ago

https://imperialb.in/r/pehwukqa

The feature has been added. Please try the latest version of the image to see if it is working.

I have tried several subscriptions, but all of them prompt "No nodes were found!" This is a temporary link that you can test.

By the way, Happy New Year.

asdlokj1qpi23 commented 6 months ago

Please try again with the latest version.

ghost commented 6 months ago

Please try again with the latest version.

After my testing (sing-box configuration to clash.meta configuration), I found that there are three main issues:

I would also like to inquire, currently the nodes of type tuic are being discarded during the conversion process. Do you have any plans to support them in the future?

Thanks.

asdlokj1qpi23 commented 6 months ago

The auth field in Hysteria2 is designed to be compatible with Stash and is not a redundant field. The issues with VLESS and SS protocols have already been addressed. As for the QUIC protocol, I currently don't have a testing environment. We will consider adding support for it when there is a significant number of users using it.

ghost commented 6 months ago

Thank you for your reply.

After testing, I found that there are still several issues during the process of converting Singbox to Clash:

If you are interested in supporting the tuic protocol, I can provide test nodes at any time. Thank you for your works.🎉🎉🎉

asdlokj1qpi23 commented 6 months ago

Thank you for your reply.

After testing, I found that there are still several issues during the process of converting Singbox to Clash:

  • nodes of type vless or hysteria2 will lose the sni or servername attribute.
  • sni, servername, ws-opts or grpc-opts may appear in a disorderly situation. You can test with this link, 日本A, 日本B, 日本E and 美国D erroneously inherited 台湾B server and headers attributes.

If you are interested in supporting the tuic protocol, I can provide test nodes at any time. Thank you for your works.🎉🎉🎉

These bugs were indeed my fault, and I have already fixed them. Thank you for helping with the testing.

ghost commented 6 months ago

Thank you for your reply. After testing, I found that there are still several issues during the process of converting Singbox to Clash:

  • nodes of type vless or hysteria2 will lose the sni or servername attribute.
  • sni, servername, ws-opts or grpc-opts may appear in a disorderly situation. You can test with this link, 日本A, 日本B, 日本E and 美国D erroneously inherited 台湾B server and headers attributes.

If you are interested in supporting the tuic protocol, I can provide test nodes at any time. Thank you for your works.🎉🎉🎉

These bugs were indeed my fault, and I have already fixed them. Thank you for helping with the testing.

asdlokj1qpi23 commented 6 months ago

The related issues have been fixed.