blob: fe56369a8c50a32d8e1f59da628276bd78b33623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
set -xeuo pipefail
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" ]
|