mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
wireguard docs: check DEVICE is not null
This commit is contained in:
parent
da05000c7f
commit
ae499efa3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user