Skip to content

Commit 0212f55

Browse files
authored
fix(init):fix typo (#3959)
1 parent a6b8959 commit 0212f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luci-app-openclash/root/etc/init.d/openclash

+1-1
Original file line numberDiff line numberDiff line change
@@ -3151,7 +3151,7 @@ get_config()
31513151
if [ "$lan_interface_name" = "0" ]; then
31523152
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)
31533153
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}')
31553155
fi
31563156
wan_ip4s=$(/usr/share/openclash/openclash_get_network.lua "wanip" 2>/dev/null)
31573157
wan_ip6s=$(ifconfig | grep 'inet6 addr' | awk '{print $3}' 2>/dev/null)

0 commit comments

Comments
 (0)