mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-05 00:32:55 +00:00
Add option to disable traffic forwarding
This commit is contained in:
@ -36,6 +36,9 @@ case "$1" in
|
||||
exit 0
|
||||
;;
|
||||
'init')
|
||||
if [ "$2" == "--no-forward" ]; then
|
||||
export DISABLE_FORWARD_ALL_TRAFFIC="yes"
|
||||
fi
|
||||
if [ ! -f "/etc/wireguard/$DEVICE.conf" ]; then
|
||||
cd /etc/wireguard
|
||||
/scripts/create-config.sh
|
||||
|
Reference in New Issue
Block a user