iface: not get ip route
This commit is contained in:
parent
656ce2b416
commit
a52c3dfb53
@ -54,7 +54,7 @@ then
|
||||
fi
|
||||
|
||||
# Check local ip address
|
||||
IPADDR=$(ip route get 4.2.2.1 | awk '{print $NF;exit}')
|
||||
IPADDR=$(ip -f inet addr show dev "$IF" | sed -n 's/^ *inet *\([.0-9]*\).*/\1/p')
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
3) echo -n "$IPADDR" | xclip -q -se c ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user