Merge pull request #1216 from BastilleBSD/tschettervictor-patch-1

This commit is contained in:
tschettervictor
2025-08-26 09:21:53 -04:00
committed by GitHub

View File

@@ -211,6 +211,13 @@ validate_netif() {
else else
error_exit "Invalid: (${_interface})." error_exit "Invalid: (${_interface})."
fi fi
# Don't allow dots in INTERFACE if -V
if [ "${VNET}" -eq 1 ] && [ "${BRIDGE}" -eq 0 ]; then
if echo "${INTERFACE}" | grep -q "\."; then
error_exit "[ERROR]: [-V|--vnet] does not support dots (.) in interface names."
fi
fi
} }
check_interface_added() { check_interface_added() {