mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-08 15:52:53 -05:00
17 lines
332 B
Bash
17 lines
332 B
Bash
|
|
# dnscrypt precheck.sh
|
||
|
|
|
||
|
|
# if no dnscrypt; exit
|
||
|
|
if grep "define USE_DNSCRYPT 1" $PRE/config.h; then
|
||
|
|
echo "have dnscrypt"
|
||
|
|
else
|
||
|
|
echo "no dnscrypt"
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
# if no xchacha20 support in unbound; exit
|
||
|
|
if grep "define USE_DNSCRYPT_XCHACHA20 1" $PRE/config.h; then
|
||
|
|
xchacha20=1
|
||
|
|
else
|
||
|
|
xchacha20=0
|
||
|
|
fi
|