mirror of
https://github.com/hackacad/bastille.git
synced 2026-05-19 13:53:36 +02:00
network: Fix bridge interface not properly detected
This commit is contained in:
@@ -421,7 +421,7 @@ case "${ACTION}" in
|
||||
fi
|
||||
fi
|
||||
elif [ "${BRIDGE_VNET_JAIL}" -eq 1 ]; then
|
||||
if ! ifconfig | grep "${INTERFACE}" | grep -q bridge; then
|
||||
if ! ifconfig -g bridge | grep -owq "${INTERFACE}"; then
|
||||
error_exit "\"${INTERFACE}\" is not a bridge interface."
|
||||
else
|
||||
add_interface "${TARGET}" "${INTERFACE}" "${IP}"
|
||||
|
||||
Reference in New Issue
Block a user