Unverified Commit f4943a55 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: IP address parsing (#1070)

parent 239d2ac3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -515,7 +515,7 @@ configureNAT() {
  fi

  local ip base gateway exclude
  base=$(echo "$IP" | sed -r 's/([^.]*.){2}//')
  base=$(cut -d. -f3,4 <<< "$IP")

  if [[ "$IP" != "172.30."* ]]; then
    ip="172.30.$base"