-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tun mode with sing-box #1191
base: main
Are you sure you want to change the base?
Conversation
Add tun mode with sing-box
Fixed the problem that DNS is invalid in TUN mode
OK, it's sure that you have used a full version of sing-box. However if you can switch to use sing -tun, it will be better in both packaging workflows and packages' size. Thanks for your work. |
现在是v2ray套singbox吗 |
是的,没有写配置转换的代码,只利用sing-box建立tun然后转发给v2ray |
@wnxd 如果只是tun的话,v2ray-core现在是支持tun的 |
@mzz2017 印象中只支持Windows,所有如果能单独引入 sing-tun 是坠吼的 |
@wnxd 可以麻烦添加singbox的全支持吗,这一定是一个激动人心的特性 |
emmmm,我注意到介绍上只说了linux支持tun,在未阅读代码的情况下我以为macos不支持,所以就套了sing-box,毕竟sing-box在linux、macos与windows都支持的不错 |
对的,所以现在有两个选择,要么让sing-box成为v2rayA所支持的第三个核心,从而减少套娃;或者只引入sing-tun,减少打包时的体积与依赖项 |
全支持的话,对于以前的代码肯能会有很大的改动,我可能需要些时间考虑下修改方案 |
@MarksonHon |
第三个核心的变化会有点大,因为现在支持的两个核心毕竟从血缘上是相关的,配置文件大部分是兼容的,如果要支持sing-box可能要写很多if |
@Gaojianli 工作量确实有点大。不如给v2raycore加win的tun支持? |
@MarksonHon 引入 sing-tun 也是一个小成本方案 |
是的,具体来说需要完成以下项目: 如果只引入 sing-tun(我个人偏向这种方案),那么工作量就会少得多: 相对而言工作量少得多 |
@MarksonHon |
@wnxd 好的,那就麻烦你继续修改了 |
@mzz2017 |
@wnxd 是在编译网页面板的时候出错还是编译Go部分的时候报错了 |
@MarksonHon |
@wnxd 我试了你的fork,能编译成功 |
@MarksonHon 我指的是 |
具体是哪个修改? |
静等大佬更新,我比较倾向sing-box做第三核心 |
Add tun mode with sing-box