File tree 1 file changed +1
-1
lines changed
luci-app-openclash/root/etc/init.d
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3151,7 +3151,7 @@ get_config()
3151
3151
if [ " $lan_interface_name " = " 0" ]; then
3152
3152
lan_ip=$( uci -q get network.lan.ipaddr | awk -F ' /' ' {print $1}' 2> /dev/null || ip address show $( uci -q -p /tmp/state get network.lan.ifname || uci -q -p /tmp/state get network.lan.device) | grep -w " inet" 2> /dev/null | grep -Eo ' inet [0-9\.]+' | awk ' {print $2}' || ip addr show 2> /dev/null | grep -w ' inet' | grep ' global' | grep ' brd' | grep -Eo ' inet [0-9\.]+' | awk ' {print $2}' | head -n 1)
3153
3153
else
3154
- lan_ip=$( ip address show $( uci -q -p $ lan_interface_name) | grep -w " inet" 2> /dev/null | grep -Eo ' inet [0-9\.]+' | awk ' {print $2}' )
3154
+ lan_ip=$( ip address show $lan_interface_name | grep -w " inet" 2> /dev/null | grep -Eo ' inet [0-9\.]+' | awk ' {print $2}' )
3155
3155
fi
3156
3156
wan_ip4s=$( /usr/share/openclash/openclash_get_network.lua " wanip" 2> /dev/null)
3157
3157
wan_ip6s=$( ifconfig | grep ' inet6 addr' | awk ' {print $3}' 2> /dev/null)
You can’t perform that action at this time.
0 commit comments