2022-03-11 16:56:41 +00:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
|
|
|
curl http://example.com -vs --socks5-hostname 127.0.0.1:9150 -o /dev/null
|
|
|
|
|
2022-03-15 12:26:45 +00:00
|
|
|
[ "$(dig @127.0.0.1 -p 35353 +short example.com A)" == "93.184.216.34" ]
|
2022-03-12 08:24:51 +00:00
|
|
|
|
|
|
|
## 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.
|
2022-03-15 12:26:45 +00:00
|
|
|
#[ "$(dig @127.0.0.1 -p 35353 +short example.com AAAA)" == "2606:2800:220:1:248:1893:25c8:1946" ]
|