Closed abigchopstick closed 2 years ago
v0.45.35beta
Lean
Linux-armv8
在以下版本的Openwrt中尝试打开OpenClash Fake-ip 的TUN模式
型号 | Phicomm N1 架构 | AArch64 Processor : Cortex-A53 * 4 固件版本 | OpenWrt R22.7.7 (2022-07-16 13:48:19 by flippy) / LuCI Master (git-22.196.12585-0f5cc90) 内核版本 | 5.15.55-flippy-74+o
2022-07-25 16:15:56 错误: 无法获取 General 部分的转发端口设置, OpenClash 使用原始配置文件启动失败 总是到这里失败
2022-07-25 16:15:59 OpenClash 开始关闭... 2022-07-25 16:15:56 错误: 无法获取 General 部分的转发端口设置, OpenClash 使用原始配置文件启动失败 2022-07-25 16:15:54 错误: OpenClash 启动失败,尝试使用原始配置文件启动... 2022-07-25 16:15:53 第六步: 等待主程序下载外部文件... github.com/Dreamacro/clash/main.go:100 +0x7cc main.main() github.com/Dreamacro/clash/hub/hub.go:31 +0x48 github.com/Dreamacro/clash/hub.Parse({0x0, 0x0, 0x85024b?}) github.com/Dreamacro/clash/hub/executor/executor.go:50 github.com/Dreamacro/clash/hub/executor.Parse(...) github.com/Dreamacro/clash/hub/executor/executor.go:60 +0x44 github.com/Dreamacro/clash/hub/executor.ParseWithPath({0x7fcfc57af5?, 0x4000143e40?}) github.com/Dreamacro/clash/hub/executor/executor.go:65 github.com/Dreamacro/clash/hub/executor.ParseWithBytes(...) github.com/Dreamacro/clash/config/config.go:220 +0x3c github.com/Dreamacro/clash/config.Parse({0x4000200000?, 0x1d?, 0x7f9cd84a68?}) github.com/Dreamacro/clash/config/config.go:313 +0x21c github.com/Dreamacro/clash/config.ParseRawConfig(0x400014f8c0) github.com/Dreamacro/clash/config/config.go:766 +0x32c github.com/Dreamacro/clash/config.parseDNS(0x400014f8c0, 0x400011a2d8) github.com/Dreamacro/clash/component/trieset/domain.go:91 +0x514 github.com/Dreamacro/clash/component/trieset.New({0x4000422000, 0x5f, 0x400026d5f4?}) goroutine 1 [running]: panic: runtime error: slice bounds out of range [:-1]
N1运行在旁路模式,IPV6已经全关掉了(但OPENCLASH启动时还是会提示),不用TUN模式可以工作,但有些网站无法访问(大概跟UPD有关?)
正常开启TUN模式
No response
v0.44.16beta也有同样的问题,或者更早的版本,一直有这个问题。
同上
没人有同样问题吗
解决了,应该是配置文件的问题,可能用OpenClash内置的转换模式会好一些。
Verify Steps
OpenClash Version
v0.45.35beta
Bug on Environment
Lean
Bug on Platform
Linux-armv8
To Reproduce
在以下版本的Openwrt中尝试打开OpenClash Fake-ip 的TUN模式
型号 | Phicomm N1 架构 | AArch64 Processor : Cortex-A53 * 4 固件版本 | OpenWrt R22.7.7 (2022-07-16 13:48:19 by flippy) / LuCI Master (git-22.196.12585-0f5cc90) 内核版本 | 5.15.55-flippy-74+o
Describe the Bug
2022-07-25 16:15:56 错误: 无法获取 General 部分的转发端口设置, OpenClash 使用原始配置文件启动失败 总是到这里失败
OpenClash Log
2022-07-25 16:15:59 OpenClash 开始关闭... 2022-07-25 16:15:56 错误: 无法获取 General 部分的转发端口设置, OpenClash 使用原始配置文件启动失败 2022-07-25 16:15:54 错误: OpenClash 启动失败,尝试使用原始配置文件启动... 2022-07-25 16:15:53 第六步: 等待主程序下载外部文件... github.com/Dreamacro/clash/main.go:100 +0x7cc main.main() github.com/Dreamacro/clash/hub/hub.go:31 +0x48 github.com/Dreamacro/clash/hub.Parse({0x0, 0x0, 0x85024b?}) github.com/Dreamacro/clash/hub/executor/executor.go:50 github.com/Dreamacro/clash/hub/executor.Parse(...) github.com/Dreamacro/clash/hub/executor/executor.go:60 +0x44 github.com/Dreamacro/clash/hub/executor.ParseWithPath({0x7fcfc57af5?, 0x4000143e40?}) github.com/Dreamacro/clash/hub/executor/executor.go:65 github.com/Dreamacro/clash/hub/executor.ParseWithBytes(...) github.com/Dreamacro/clash/config/config.go:220 +0x3c github.com/Dreamacro/clash/config.Parse({0x4000200000?, 0x1d?, 0x7f9cd84a68?}) github.com/Dreamacro/clash/config/config.go:313 +0x21c github.com/Dreamacro/clash/config.ParseRawConfig(0x400014f8c0) github.com/Dreamacro/clash/config/config.go:766 +0x32c github.com/Dreamacro/clash/config.parseDNS(0x400014f8c0, 0x400011a2d8) github.com/Dreamacro/clash/component/trieset/domain.go:91 +0x514 github.com/Dreamacro/clash/component/trieset.New({0x4000422000, 0x5f, 0x400026d5f4?}) goroutine 1 [running]: panic: runtime error: slice bounds out of range [:-1]
OpenClash Config
Expected Behavior
正常开启TUN模式
Screenshots
No response