code format
This commit is contained in:
1 parent
6c127461b5
commit
e05f1e47bd
1 file changed
+1
-1
@@ -73,7 +73,7 @@ arWanIp6() {
|
||||
|
||||
case $(uname) in
|
||||
'Linux')
|
||||
hostIp=$(ip -o -6 addr list | grep -Ev '\s(docker|lo)' |awk '{print $4,substr($NF,0,length($NF)-3)}'|sed 's/fore/2592000/g'|sort -k 2 -n | cut -d/ -f1 | grep -Ev "$lanIps" | tail -n 1)
|
||||
hostIp=$(ip -o -6 addr list | grep -Ev '\s(docker|lo)' | awk '{print $4,substr($NF,0,length($NF)-3)}' | sed 's/fore/2592000/g' | sort -k 2 -n | cut -d/ -f1 | grep -Ev "$lanIps" | tail -n 1)
|
||||
;;
|
||||
'Darwin')
|
||||
hostIp=$(ifconfig | grep "inet6 " | awk '{print $2}' | grep -Ev "$lanIps" | tail -n 1)
|
||||
|
||||
Reference in new issue
Block a user