mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
fix: IP address parsing (#1168)
This commit is contained in:
1 parent
d5802607b5
commit
28e6f8da78
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user