dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / test / features / test-dnscrypt-proxy / forced_tcp.feature
blob0950838dc8a21279b17498063b6f728a9f095520
1 Feature: check that --tcp-only works as advertised.
3   A query sent using UDP should, when the proxy is running with
4 --tcp-only, return a truncated reply so that the client retries using
5 TCP.
6   
7   Scenario: query an existing name over UDP, and even though this name
8 would fit in a 512-bytes UDP packet, expect a forced fallback to TCP.
9   
10     Given a working opendnscache on 208.67.220.220
11     And a running dnscrypt proxy with options "--edns-payload-size=4096 --tcp-only"
12     When a client asks dnscrypt-proxy for "resolver1.opendns.com"
13     Then dnscrypt-proxy returns "208.67.222.222"