fix: Close file descriptors (#261)

This commit is contained in:
Kroese 2023-12-25 04:05:58 +01:00 committed by GitHub
parent 21bbfcbbb7
commit 55473e7ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,9 @@ configureNAT () {
closeNetwork () { closeNetwork () {
exec 30<&- || true
exec 40<&- || true
if [[ "$DHCP" == [Yy1]* ]]; then if [[ "$DHCP" == [Yy1]* ]]; then
ip link set "$VM_NET_TAP" down || true ip link set "$VM_NET_TAP" down || true