Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netxlite: do not call netgo the CGO_ENABLED=0 resolver #766

Merged
merged 1 commit into from
May 30, 2022

Conversation

bassosimone
Copy link
Contributor

In ooni/probe#2029 (comment), we
explained why calling it "netgo" would be incorrect.

In other words, we can get the platform's getaddrinfo as long as
we're not cross compiling. We do cross compile ooniprobe, actually
it's not even possible to cross compile it.

For increased accuracy, we should stop cross compiling miniooni
as well, so it would also directly use getaddrinfo.

This diff fixes at the same time ooni/probe-cli and ooni/spec
and we'll open two pull requests in parallel.

In ooni/probe#2029 (comment), we
explained why calling it "netgo" would be incorrect.

In other words, we can get the platform's `getaddrinfo` as long as
we're not cross compiling. We do cross compile `ooniprobe`, actually
it's not even possible to cross compile it.

For increased accuracy, we should stop cross compiling `miniooni`
as well, so it would also directly use `getaddrinfo`.

This diff fixes at the same time ooni/probe-cli and ooni/spec
and we'll open two pull requests in parallel.
@bassosimone
Copy link
Contributor Author

[...]

For increased accuracy, we should stop cross compiling miniooni as well, so it would also directly use getaddrinfo.

I created ooni/probe#2119 to track this follow up work.

@bassosimone bassosimone merged commit 595d074 into master May 30, 2022
@bassosimone bassosimone deleted the issue/2029-small branch May 30, 2022 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant