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
|
|
@ -62,6 +62,9 @@ func main() {
|
|||
return netxlite.NewDialerWithResolver(log.Log, newResolver())
|
||||
},
|
||||
NewResolver: newResolver,
|
||||
NewTLSHandshaker: func() model.TLSHandshaker {
|
||||
return netxlite.NewTLSHandshakerStdlib(log.Log)
|
||||
},
|
||||
})
|
||||
srv := &http.Server{Addr: *endpoint, Handler: mux}
|
||||
listener, err := net.Listen("tcp", *endpoint)
|
||||
|
|
|
|||
Loading…
Reference in a new issue