Skip to content

Commit 95c5670

Browse files
committed
bug fixes
1 parent 9b8fa6e commit 95c5670

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

structure/system/etc/init.d/99dnscrypt.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,14 @@ case "$1" in
140140
set_prop "dnscrypt-resolvers" "$arg" # use with --force flag
141141
else
142142
echo Unrecognized argument $arg
143-
exit 2
144143
fi
145144
prev=$arg
146145
done
147146

148147
status="0"
149148
do_start || status="$?"
150149

151-
if [[ "$status" -ne 0 && "$DNSCRYPT_FORCE" = 1 ]]; then
150+
if [[ "$status" -ne 0 || "$DNSCRYPT_FORCE" = 1 ]]; then
152151
log_debug_msg "restore $DESC (#$status)"
153152
do_restart
154153
fi

0 commit comments

Comments
 (0)