Updated trap.functions
This commit is contained in:
parent
e1b91843df
commit
f8a36fa773
1 changed files with 1 additions and 4 deletions
|
@ -13,7 +13,7 @@ getDefaultIP() {
|
|||
|
||||
if [[ -z "$routedev" ]]
|
||||
then
|
||||
echo ""
|
||||
echo "127.0.0.1"
|
||||
return 1
|
||||
else
|
||||
local defipaddr=$(ip -o -4 addr show "${routedev}")
|
||||
|
@ -24,8 +24,5 @@ getDefaultIP() {
|
|||
|
||||
echo "${ip}"
|
||||
fi
|
||||
|
||||
#echo "$routedev"
|
||||
#echo "${ip}/${mask}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue