create: Don't allow dots in interface if -B

This commit is contained in:
tschettervictor
2025-05-21 12:41:35 -06:00
committed by GitHub
parent 1f0a03e34f
commit 5e6b02c7a2

View File

@@ -186,6 +186,12 @@ validate_netif() {
else
error_exit "[ERROR]: Invalid: (${INTERFACE})."
fi
# Don't allow dots in INTERFACE if -V
if [ "${VNET_JAIL}" -eq 1 ] && [ -z "${VNET_JAIL_BRIDGE}" ]; then
if echo "${INTERFACE}" | grep -q "\."; then
error_exit "[ERROR]: [-V|--vnet] does not support dots \(.\) in interface names."
fi
fi
}
validate_release() {