feat(netxlite): implement hooks for transparent proxy (#561)

See https://github.com/ooni/probe/issues/1803#issuecomment-957323297.
This commit is contained in:
Simone Basso 2021-11-02 12:04:40 +01:00 committed by GitHub
commit ffdafaf351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 6 deletions

View file

@ -133,7 +133,7 @@ func (r *resolverSystem) lookupHost() func(ctx context.Context, domain string) (
if r.testableLookupHost != nil {
return r.testableLookupHost
}
return net.DefaultResolver.LookupHost
return TProxy.LookupHost
}
func (r *resolverSystem) Network() string {