diff options
-rw-r--r-- | bashrc | 2 | ||||
-rwxr-xr-x | netset | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ alias fuck='eval $(thefuck $(fc -ln -1)); history -r' # FUNCTIONS function lip () { # local ips - ip -c addr | sed -n '/^[1-9]:/p;/inet /p' + ip -4 -c addr | sed -n '/^[1-9]:/p;/inet/p' } function xip () { # external ip @@ -27,7 +27,7 @@ do N=$((N + 1)) [ $N -eq 10 ] && echo " failure" && exit 1 echo -n "." && sleep 1 - ADDR=$(ip -c addr show dev $dev | sed -n '/inet /p') + ADDR=$(ip -4 -c addr show dev $dev | sed -n '/inet/p') done echo echo $ADDR |