example-utls-with-dial

command module
v0.0.0-...-769e7fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Example using refraction-networking/utls

This example shows how you can use this library to combine net/http and refraction-networking/utls into the same product.

  • http.go shows how to interface this library with net/http so the rest of your codebase uses net/http;

  • tls.go shows how to wrap utls.UConn to be compatible with the TLSConn interface defined by this library;

  • main.go is the rest of the codebase using net/http.

The strategy we're using here is to override DialTLSContext to force using our own TLS dialer that uses uTLS (this is what OONI does).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL