SukkaW/Koolshare-Clash

[Bug Report]获取LAN IP时需要加一下判断 #62

Mosney posted onGitHub

Bug 详情

OpenWRT最新构建中network配置已使用CIDR代替传统子网掩码,会造成uci get network.lan.addr尾部多一个/24,koolclash获取LAN IP时需要加一下判断,否则会造成启动脚本中部分iptables设置无效,进而导致DNS无法重定向到clash

屏幕截图

image image image


image

posted by SukkaW over 5 years ago

@Mosney

Try this?

ubus call network.interface.lan status | jsonfilter -e '@["ipv4-address"][0].address'

If it is work I will use this instead.

posted by SukkaW over 5 years ago

@Mosney

Try this?

ubus call network.interface.lan status | jsonfilter -e '@["ipv4-address"][0].address'

If it is work I will use this instead.

It worked.

posted by Mosney over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests