diff --git a/scripts/trap.functions b/scripts/trap.functions index f962cd9..316f728 100644 --- a/scripts/trap.functions +++ b/scripts/trap.functions @@ -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}" }