ooni-probe-cli/internal/engine/experiment/webconnectivity
Simone Basso cf6dbe48e0
netxlite: call getaddrinfo and handle platform-specific oddities (#764)
This commit changes our system resolver to call getaddrinfo directly when CGO is enabled. This change allows us to:

1. obtain the CNAME easily

2. obtain the real getaddrinfo retval

3. handle platform specific oddities such as `EAI_NODATA`
returned on Android devices

See https://github.com/ooni/probe/issues/2029 and https://github.com/ooni/probe/issues/2029#issuecomment-1140258729 in particular.

See https://github.com/ooni/probe/issues/2033 for documentation regarding the desire to see `getaddrinfo`'s retval.

See https://github.com/ooni/probe/issues/2118 for possible follow-up changes.
2022-05-28 15:10:30 +02:00
..
internal chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
connects_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
connects.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
control_test.go feat: tutorial on how to write the torsf experiment (#390) 2021-06-22 00:12:03 +02:00
control.go cleanup: use ErrorToStringOrOK func in other tests that returns nil (#701) 2022-03-08 11:59:44 +01:00
dnsanalysis_test.go netxlite: call getaddrinfo and handle platform-specific oddities (#764) 2022-05-28 15:10:30 +02:00
dnsanalysis.go netxlite: call getaddrinfo and handle platform-specific oddities (#764) 2022-05-28 15:10:30 +02:00
dnslookup_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dnslookup.go cleanup: use ErrorToStringOrOK func in other tests that returns nil (#701) 2022-03-08 11:59:44 +01:00
doc.go fix: ensure experiments return nil when we want to submit (#654) 2022-01-07 13:17:20 +01:00
endpoints_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
endpoints.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
httpanalysis_test.go fix(webconnectivity): ignore any status code <= 0 (#579) 2021-11-05 13:51:22 +01:00
httpanalysis.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
httpget_test.go fix(webconnectivity): allow measuring https://1.1.1.1 (#241) 2021-03-08 12:05:43 +01:00
httpget.go cleanup: use ErrorToStringOrOK func in other tests that returns nil (#701) 2022-03-08 11:59:44 +01:00
summary_test.go netxlite: call getaddrinfo and handle platform-specific oddities (#764) 2022-05-28 15:10:30 +02:00
summary.go netxlite: call getaddrinfo and handle platform-specific oddities (#764) 2022-05-28 15:10:30 +02:00
webconnectivity_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
webconnectivity.go cleanup: merge httpheader and httpfailure into model (#758) 2022-05-25 09:54:50 +02:00