Skip to content
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

[Bug] op多网段时获取本地IP出错 #4200

Open
7 tasks done
paysenyu opened this issue Nov 27, 2024 · 0 comments
Open
7 tasks done

[Bug] op多网段时获取本地IP出错 #4200

paysenyu opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paysenyu
Copy link

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

0.46.054

Bug on Environment

Official OpenWrt

OpenWrt Version

OpenWrt 21.02-SNAPSHOT r15812+1076-46b6ee7ffc

Bug on Platform

Linux-arm64

Describe the Bug

image

当openwrt中的 lan 地址扩展为多网段时,如
10.105.1.1/24
10.105.2.1/24

此时openclash 获取的本地地址会变成 10.105.1.110.105.2.1 造成解析异常

image

To Reproduce

openwrt 网络-接口-lan编辑-扩展多网段

openclash 获取本地ip异常

内核日志提示unsupported address

OpenClash Log

2024-11-27 10:43:15 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:15 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"
2024-11-27 10:43:14 level=warning msg="[TCP] dial 🐟 漏网之鱼 (match Match/) wanip xxxx:42574 --> 10.105.1.110.105.2.1:9090 error: unsupported address"

OpenClash Config

No response

Expected Behavior

仅获取第一个网段,因为op的lan这样设置后,局域网设备都是默认只获取第一个网段的dhcp,即10.105.1.x

会自动忽略 10.105.2.x

Additional Context

No response

@paysenyu paysenyu added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant