Skip to content

Commit

Permalink
fix: being able to use empty DNS_ADDRS with docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux authored and Max Lv committed Apr 11, 2022
1 parent 0c23224 commit e21f824
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e21f824

Please sign in to comment.