Unverified Commit 55473e7f authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Close file descriptors (#261)

parent 21bbfcbb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -166,6 +166,9 @@ configureNAT () {

closeNetwork () {

  exec 30<&- || true
  exec 40<&- || true

  if [[ "$DHCP" == [Yy1]* ]]; then

    ip link set "$VM_NET_TAP" down || true