fix: IP address parsing (#1168)

This commit is contained in:
Kroese
2026-05-29 17:13:47 +02:00
committed by GitHub
parent d5802607b5
commit 28e6f8da78

View File

@@ -463,7 +463,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"