mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-11-09 16:56:37 +03:00
add tests for statics (#1569)
This commit is contained in:
parent
5b8c9c495f
commit
7afc43ab35
@ -135,3 +135,14 @@ if [ -s error.log ]; then
|
||||
cat *.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
section
|
||||
../dnscrypt-proxy/dnscrypt-proxy -loglevel 3 -config test3-dnscrypt-proxy.toml -pidfile /tmp/dnscrypt-proxy.pidfile &
|
||||
sleep 5
|
||||
|
||||
section
|
||||
t || dig -p${DNS_PORT} A microsoft.com @127.0.0.1 | grep -Fq "NOERROR" || fail
|
||||
t || dig -p${DNS_PORT} A MICROSOFT.COM @127.0.0.1 | grep -Fq "NOERROR" || fail
|
||||
|
||||
kill $(cat /tmp/dnscrypt-proxy.pidfile)
|
||||
sleep 5
|
21
.ci/test3-dnscrypt-proxy.toml
Normal file
21
.ci/test3-dnscrypt-proxy.toml
Normal file
@ -0,0 +1,21 @@
|
||||
server_names = ['myserver']
|
||||
listen_addresses = ['127.0.0.1:5300']
|
||||
require_dnssec = true
|
||||
dnscrypt_ephemeral_keys = true
|
||||
tls_disable_session_tickets = false
|
||||
ignore_system_dns = false
|
||||
lb_strategy = 'p12'
|
||||
block_ipv6 = true
|
||||
block_unqualified = true
|
||||
block_undelegated = true
|
||||
cache = true
|
||||
|
||||
[query_log]
|
||||
file = 'query.log'
|
||||
|
||||
|
||||
|
||||
[static]
|
||||
|
||||
[static.'myserver']
|
||||
stamp = 'sdns://AQcAAAAAAAAADjIxMi40Ny4yMjguMTM2IOgBuE6mBr-wusDOQ0RbsV66ZLAvo8SqMa4QY2oHkDJNHzIuZG5zY3J5cHQtY2VydC5mci5kbnNjcnlwdC5vcmc'
|
Loading…
Reference in New Issue
Block a user