Browse Source

fix: being able to use empty DNS_ADDRS with docker image

pull/2886/head
Alexandre ABRIOUX 2 years ago
committed by Max Lv
parent
commit
e21f8248b6
1 changed files with 4 additions and 1 deletions
  1. 5
      docker/alpine/entrypoint.sh

5
docker/alpine/entrypoint.sh

@ -8,12 +8,15 @@ if [[ -f "/var/run/secrets/$PASSWORD_SECRET" ]]; then
PASSWORD=$(cat "/var/run/secrets/$PASSWORD_SECRET")
fi
if [[ ! -z "$DNS_ADDRS" ]]; then
ARGS="-d $DNS_ADDRS $ARGS"
fi
exec ss-server \
-s $SERVER_ADDR \
-p $SERVER_PORT \
-k ${PASSWORD:-$(hostname)} \
-m $METHOD \
-t $TIMEOUT \
-d $DNS_ADDRS \
-u \
$ARGS
Loading…
Cancel
Save