From: Ian Kelling Date: Fri, 28 Jun 2019 19:31:45 +0000 (-0400) Subject: make stop tear down correct namespace X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=12930c73ac850b810b56180d4d107dd66b68bb14;p=newns make stop tear down correct namespace --- diff --git a/newns b/newns index 9c9ee67..dbc9221 100755 --- a/newns +++ b/newns @@ -332,7 +332,7 @@ stop() { if nat -C &>/dev/null; then nat -D; fi fi dexec iptables -D FORWARD -i $v0 -j ACCEPT ||: - if $create && [[ -e /var/run/netns/client ]]; then + if $create && [[ -e /var/run/netns/$nn ]]; then ip netns del $nn fi