ooni-probe-cli/internal/cmd
Simone Basso 7bbd36a434
[forwardport] fix(jafar/iptables/test): force using pure Go resolver (#690)
This commit forward ports 8f2d7945f806579af4d0495f4b8f5a6a01eefb0c, whose
commit message is as follows:

- - -

The discrepancy I was seeing between my local tests and tests run
in the CI is that my systemd is configured to use DoT.

Hence, it was bypassing iptables rules because the query was sent
over an encrypted tunnel. Using a pure Go resolver fixes since
that always uses UDP, so the filter works.

Also, reason that we want as minimal as possible tests, so refactor
a test so that we use just a resolver rather than an HTTP client, and,
while there, also enforce this resolver to be a pure Go resolver.

Reference issue: https://github.com/ooni/probe/issues/2016

This diff WILL need to be forward ported to master.
2022-02-09 15:32:45 +01:00
..
apitool refactor: move httpx into the internal package (#646) 2022-01-05 17:17:20 +01:00
e2epostprocess cleanup(all): stop using deprecated ioutil functions (#381) 2021-06-15 14:01:45 +02:00
getresources refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
jafar [forwardport] fix(jafar/iptables/test): force using pure Go resolver (#690) 2022-02-09 15:32:45 +01:00
miniooni refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
oohelper feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
oohelperd feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
printversion fix: ensure we bind oohelperd with the repo's version number (#558) 2021-10-22 17:21:38 +02:00
README.md doc: ensure all top dirs have an explanatory README (#214) 2021-02-03 16:54:00 +01:00

Directory github.com/ooni/probe-cli/internal/cmd

This directory contains the source code for the CLI tools we build but we don't want to expose to the outside world. That is, you can only build these tools if you have cloned this repo.