fix: IP address parsing (#1168)

This commit is contained in:
Kroese authored and GitHub committed 2026-05-29 17:13:47 +02:00
1 parent d5802607b5
commit 28e6f8da78
1 file changed
+1 -1
+1 -1
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"