wireguard docs: check DEVICE is not null

This commit is contained in:
bol-van 2022-06-18 11:43:31 +03:00
parent da05000c7f
commit ae499efa3a

View File

@ -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