mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-18 00:01:34 +00:00
fix: Close file descriptors (#261)
This commit is contained in:
@@ -166,6 +166,9 @@ configureNAT () {
|
||||
|
||||
closeNetwork () {
|
||||
|
||||
exec 30<&- || true
|
||||
exec 40<&- || true
|
||||
|
||||
if [[ "$DHCP" == [Yy1]* ]]; then
|
||||
|
||||
ip link set "$VM_NET_TAP" down || true
|
||||
|
||||
Reference in New Issue
Block a user