mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
fix: Check for Podman IP ranges (#745)
This commit is contained in:
parent
c5dd5c2e46
commit
36f1e47c0a
@ -365,6 +365,7 @@ createDevice () {
|
|||||||
"usb" )
|
"usb" )
|
||||||
result="$result \
|
result="$result \
|
||||||
-device usb-storage,drive=${DISK_ID}${index}"
|
-device usb-storage,drive=${DISK_ID}${index}"
|
||||||
|
echo "$result"
|
||||||
;;
|
;;
|
||||||
"ide" )
|
"ide" )
|
||||||
result="$result \
|
result="$result \
|
||||||
|
@ -327,7 +327,7 @@ fi
|
|||||||
|
|
||||||
if [[ "$DHCP" == [Yy1]* ]]; then
|
if [[ "$DHCP" == [Yy1]* ]]; then
|
||||||
|
|
||||||
! checkOS && exit 19
|
! checkOS && [[ "$DEBUG" != [Yy1]* ]] && exit 19
|
||||||
|
|
||||||
if [[ "$GATEWAY" == "172."* ]]; then
|
if [[ "$GATEWAY" == "172."* ]]; then
|
||||||
warn "your gateway IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!"
|
warn "your gateway IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!"
|
||||||
@ -341,8 +341,8 @@ if [[ "$DHCP" == [Yy1]* ]]; then
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
if [[ "$GATEWAY" != "172."* ]] && [[ "$GATEWAY" != "10."* ]]; then
|
if [[ "$GATEWAY" != "172."* ]] && [[ "$GATEWAY" != "10.8"* ]] && [[ "$GATEWAY" != "10.9"* ]]; then
|
||||||
! checkOS && exit 19
|
! checkOS && [[ "$DEBUG" != [Yy1]* ]] && exit 19
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Shutdown nginx
|
# Shutdown nginx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user