Tun: Update autoOutboundsInterface desc for macOS and Linux#872
Tun: Update autoOutboundsInterface desc for macOS and Linux#872Jasper344612 wants to merge 2 commits into
Conversation
|
"在 macOS 应为 |
Failed to start: app/proxyman/inbound: failed to start proxy > interface name must be utunN, where N is a number, e.g. utun9, utun11 and so on不会自动,会跳出如上提示并且启动失败。 |
|
因为之前代码里是默认设置为 if config.Name == "" {
config.Name = "xray0"
} |
|
个人意见没必要,知道就知道呗,藏的了 tun name,藏不住 process name 。 |
|
@yiguodev 还是开个 PR 吧,并且 process name 也能改的啊, |
|
@yiguodev |
|
都改成默认 |
|
我觉得macos默认这个名字就行了 平台不一样默认名字不一样很正常 |
不是TUN支持的都支持?这个预留的接口就等价sockopt.interface 它支持就支持 |
我这几天看看吧, |
|
@Fangliding 我记得最开始写的是通用的,现在是每个系统都有一套筛选排序 interface 的方案,FreeBSD 没实现了,会报错 |
主要是想避免默认 Xray 这样的字样,直接按 macOS 的命名要求吧,所有平台统一 |
freebsd 的autoOutboundsInterface不能auto但是可以手动指定 指一个有效的是可以正常操作的 |
|
主要是把一家的专用标准推到别的地方作为默认 这有点让我想起anytls用sing uot( |
又不是不能自己配置自己改,反正不想默认 Xray 字样,正好 macOS 强制,就拿来用了呗,统一命名的话文档简单、方便交流 |
|
那我改成 |
|
固定数字的话和 |
|
可以随机,先随机指定一个数字然后判断是否冲突。 |
|
@RPRX tun desc 可以改 tunnel 前面的字符串, 比如这样 要加到配置中允许自定义吗 |
|
|
|
https://github.com/XTLS/Xray-core/pull/6366
现在
autoOutbuondsInterface和autoSystemRoutingTable支持 macOS 和 Linux 了