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