feat(oohelperd): measure TLS for :443 endpoints (#886)
This diff improves oohelperd to measure :443 endpoints with TLS. Part of https://github.com/ooni/probe/issues/2237.
This commit is contained in:
parent
df0e099b73
commit
1e7384d1cc
10 changed files with 143 additions and 35 deletions
|
|
@ -52,6 +52,9 @@ type endpointInfo struct {
|
|||
|
||||
// Epnt is the endpoint to measure
|
||||
Epnt string
|
||||
|
||||
// TLS indicates whether we should try using TLS
|
||||
TLS bool
|
||||
}
|
||||
|
||||
// ipInfoToEndpoints takes in input the [ipinfo] returned by newIPInfo
|
||||
|
|
@ -86,6 +89,7 @@ func ipInfoToEndpoints(URL *url.URL, ipinfo map[string]*webconnectivity.ControlI
|
|||
out = append(out, endpointInfo{
|
||||
Addr: addr,
|
||||
Epnt: epnt,
|
||||
TLS: port == "443",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue