---
src/wg-quick/linux.bash | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash
index 6f42b7f..b888d63 100755
--- a/src/wg-quick/linux.bash
+++ b/src/wg-quick/linux.bash
@@ -353,6 +353,7 @@ cmd_down() {
}
cmd_restart() {
+ [[ " $(wg show interfaces) " == *" $INTERFACE "* ]] || die
"\`$INTERFACE' is not a WireGuard interface"
cmd_down
cmd_up
}
--
2.24.3 (Apple Git-128)- [PATCH] wg-quick: add restart command Garrit Franke
- [PATCH 2/6] wg-quick: add restart man page Garrit Franke
- [PATCH 6/6] wg-quick: darwin: add restart command Garrit Franke
- [PATCH 4/6] wg-quick: linux: add notice to restart... Garrit Franke
- [PATCH 3/6] wg-quick: freebsd: add restart command Garrit Franke
- [PATCH 5/6] wg-quick: openbsd: add restart command Garrit Franke
- [PATCH 1/6] wg-quick: linux: add restart command Garrit Franke
- Re: [PATCH] wg-quick: add restart command Jason A. Donenfeld
- Re: [PATCH] wg-quick: add restart command Eric Light
- Re: [PATCH] wg-quick: add restart command Jason A. Donenfeld
- Re: [PATCH] wg-quick: add restart comm... Eric Light
- Re: [PATCH] wg-quick: add restart... Garrit Franke
- Re: [PATCH] wg-quick: add restart comm... Tore Anderson
- Re: [PATCH] wg-quick: add restart... Tore Anderson
