You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.
Mihomo version
Mihomo Meta alpha-d56a439 windows amd64 with go1.22.1 Sat Mar 23 14:32:19 UTC 2024 Use tags: with_gvisor
time="2024-03-24T17:31:47.9011594+08:00" level=info msg="Start initial configuration in progress"
time="2024-03-24T17:31:47.9203404+08:00" level=info msg="Geodata Loader mode: standard"
time="2024-03-24T17:31:47.9203404+08:00" level=info msg="Geosite Matcher implementation: succinct"
time="2024-03-24T17:31:47.9402256+08:00" level=info msg="Initial configuration complete, total time: 21ms"
time="2024-03-24T17:31:47.9402256+08:00" level=info msg="Sniffer is loaded and working"
time="2024-03-24T17:31:47.9418121+08:00" level=info msg="Use tcp concurrent"
time="2024-03-24T17:31:47.9428589+08:00" level=info msg="RESTful API listening at: [::]:10855"
time="2024-03-24T17:31:47.9428589+08:00" level=info msg="DNS server listening at: [::]:53"
time="2024-03-24T17:31:47.9434138+08:00" level=info msg="Mixed(http+socks) proxy listening at: 127.0.0.1:7890"
time="2024-03-24T17:31:47.9461619+08:00" level=warning msg="[TUN] default interface changed by monitor, => WLAN"
time="2024-03-24T17:31:48.4142917+08:00" level=info msg="[TUN] Tun adapter listening at: Meta([198.18.0.1/30],[]), mtu: 1500, auto route: true, ip stack: gVisor"
time="2024-03-24T17:31:48.4252792+08:00" level=info msg="Start initial provider SF-ALL"
time="2024-03-24T17:31:48.4308497+08:00" level=info msg="Start initial provider JKL-ALL"
time="2024-03-24T17:31:48.5450681+08:00" level=warning msg="[Provider] SF-ALL not updated for a long time, force refresh"
time="2024-03-24T17:31:48.6086091+08:00" level=warning msg="[Provider] JKL-ALL not updated for a long time, force refresh"
panic: interface conversion: net.Addr is *net.IPAddr, not *net.IPNet
goroutine 180 [running]:
github.com/metacubex/mihomo/component/iface.ResolveInterface.func1()
github.com/metacubex/mihomo/component/iface/iface.go:43 +0x4b2
github.com/metacubex/mihomo/common/singledo.(*Single[...]).Do(0xc000263ce0, 0x10dcdc0?)
github.com/metacubex/mihomo/common/singledo/singledo.go:46 +0x197
github.com/metacubex/mihomo/component/iface.ResolveInterface({0xc0001144a8, 0x4})
github.com/metacubex/mihomo/component/iface/iface.go:27 +0x35
github.com/metacubex/mihomo/component/dialer.bindIfaceToDialer({0xc0001144a8?, 0xc0004100c0?}, 0xc000354310, {0x12131c0?, 0xe91c9e89e2fc7beb?}, {{0xc0004100ad?, 0xd7b4f5cbba3a9910?}, 0xd2523f8427a81a1?})
github.com/metacubex/mihomo/component/dialer/bind_windows.go:80 +0x2f
github.com/metacubex/mihomo/component/dialer.dialContext({0x122a420, 0xc0003542a0}, {0x105fd90, 0x3}, {{0x487002fcd30205c4?, 0xf79d754948eb306c?}, 0xc0000060a8?}, {0xc0004100ad, 0x3}, 0xc000378c00)
github.com/metacubex/mihomo/component/dialer/dialer.go:159 +0x383
github.com/metacubex/mihomo/component/dialer.parallelDialContext.func1({0x122a420?, 0xc0003542a0?}, {{0x9e72678dc98d1c3d?, 0xcd889df0d88022ae?}, 0xc0000060a8?})
github.com/metacubex/mihomo/component/dialer/dialer.go:293 +0x106
created by github.com/metacubex/mihomo/component/dialer.parallelDialContext in goroutine 49
github.com/metacubex/mihomo/component/dialer/dialer.go:297 +0x257
Description
在笔记本的windows 11上仅使用WIFI连接网络,再到设置->网络和Internet->移动热点开启热点后(想让手机连接笔记本的WIFI热点共享),启动mihomo在解析网络接口时出错:panic: interface conversion: net.Addr is *net.IPAddr, not *net.IPNet。关闭WIFI热点后可正常使用
Verify steps
Mihomo version
Mihomo Meta alpha-d56a439 windows amd64 with go1.22.1 Sat Mar 23 14:32:19 UTC 2024 Use tags: with_gvisor
What OS are you seeing the problem on?
Windows
Mihomo config
Mihomo log
Description
在笔记本的windows 11上仅使用WIFI连接网络,再到
设置->网络和Internet->移动热点
开启热点后(想让手机连接笔记本的WIFI热点共享),启动mihomo在解析网络接口时出错:panic: interface conversion: net.Addr is *net.IPAddr, not *net.IPNet
。关闭WIFI热点后可正常使用在代码
mihomo/component/iface/iface.go
Line 43 in d56a439
net.Addr(*net.IPAddr) *{IP: net.IP len: 16, cap: 16, [36,9,138,85,56,137,46,53,0,0,0,0,0,0,0,0], Zone: ""}
导致的问题。如果尝试忽略这个地址似乎会导致流量循环,连接迅速增加直到崩溃。下面是部分debug截图数据
windows版本
The text was updated successfully, but these errors were encountered: