mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 09:10:15 +01:00
Merge pull request #1216 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -211,6 +211,13 @@ validate_netif() {
|
||||
else
|
||||
error_exit "Invalid: (${_interface})."
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user