Skip to content

Commit 0f78684

Browse files
committed
Add a test for the local DoH feature
1 parent cf1498c commit 0f78684

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.ci/ci-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ t || dig -p${DNS_PORT} tracker.debian.org @127.0.0.1 | grep -Fqv 'locally blocke
8484
section
8585
t || curl --insecure -siL https://127.0.0.1:${HTTP_PORT}/ | grep -Fq '404 Not Found' || fail
8686
t || curl --insecure -sL https://127.0.0.1:${HTTP_PORT}/dns-query | grep -Fq 'dnscrypt-proxy local DoH server' || fail
87+
t ||
88+
echo yv4BAAABAAAAAAABAAACAAEAACkQAAAAgAAAAA== | base64 -d |
89+
curl -H'Content-Type: application/dns-message' -H'Accept: application/dns-message' --data-binary @- -D - --insecure https://127.0.0.1:${HTTP_PORT}/dns-query 2>/dev/null |
90+
grep -Fq application/dns-message || fail
8791

8892
kill $(cat /tmp/dnscrypt-proxy.pidfile)
8993

0 commit comments

Comments
 (0)