From ae499efa3a720815912e317d7507275aee93c1df Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 18 Jun 2022 11:43:31 +0300 Subject: [PATCH] wireguard docs: check DEVICE is not null --- docs/wireguard/wireguard_iproute_openwrt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/wireguard/wireguard_iproute_openwrt.txt b/docs/wireguard/wireguard_iproute_openwrt.txt index 4224794..6d0506a 100644 --- a/docs/wireguard/wireguard_iproute_openwrt.txt +++ b/docs/wireguard/wireguard_iproute_openwrt.txt @@ -399,6 +399,7 @@ EOF network_get_device DEVICE wgvps +[ -n "$DEVICE" ] && cat << EOF | nft -f - add chain inet $ZAPRET_NFT_TABLE my_output { type route hook output priority mangle; } flush chain inet $ZAPRET_NFT_TABLE my_output