mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-04-19 13:26:50 +00:00
Do not create clients if CLIENTS env not set
This commit is contained in:
parent
ff6d28d5a2
commit
4ed0d15d2e
@ -21,5 +21,3 @@ services:
|
|||||||
SERVER_HOST: example.com
|
SERVER_HOST: example.com
|
||||||
SERVER_PORT: 51820
|
SERVER_PORT: 51820
|
||||||
NETWORK: 192.168.42.0
|
NETWORK: 192.168.42.0
|
||||||
CLIENTS: 5
|
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ else
|
|||||||
echo " - Do not forward all traffic"
|
echo " - Do not forward all traffic"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z $CLIENTS ]]; then
|
||||||
|
CLIENTS=0
|
||||||
|
fi
|
||||||
|
|
||||||
if (( $CLIENTS > 240 )); then
|
if (( $CLIENTS > 240 )); then
|
||||||
CLIENTS=240
|
CLIENTS=240
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user