mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-05-31 12:06:36 +00:00
fix: IP address parsing (#1168)
This commit is contained in:
@@ -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