summaryrefslogtreecommitdiff
path: root/tests/chutney/test
blob: 6fe76b92b56f2e2cd0784beabf8aecb5dc43289a (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash -xe

curl http://example.com -vs --socks5-hostname 127.0.0.1:9150 -o /dev/null

[ "$(dig @127.0.0.1 -p 35353 +short example.com A)" == "93.184.216.34" ]

## This test only work on a chutney network with IPv6 support such as ipv6-exit-min,
## sadly such a network can't run in CI because there is no IPv6 in docker.
#[ "$(dig @127.0.0.1 -p 35353 +short example.com AAAA)" == "2606:2800:220:1:248:1893:25c8:1946" ]