mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +01:00
create: Don't allow dots in interface if -B
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user