utls

package
v0.0.0-...-eb0558f Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAllNames

func ListAllNames() []string

func NameToUTLSID

func NameToUTLSID(name string) (utls.ClientHelloID, error)

func NewUTLSHTTPRoundTripper deprecated

func NewUTLSHTTPRoundTripper(clientHelloID utls.ClientHelloID, uTlsConfig *utls.Config,
	backdropTransport http.RoundTripper, removeSNI bool) http.RoundTripper

Deprecated: use NewUTLSHTTPRoundTripperWithProxy instead

func NewUTLSHTTPRoundTripperWithProxy

func NewUTLSHTTPRoundTripperWithProxy(clientHelloID utls.ClientHelloID, uTlsConfig *utls.Config,
	backdropTransport http.RoundTripper, removeSNI bool, proxy *url.URL) http.RoundTripper

NewUTLSHTTPRoundTripperWithProxy creates an instance of RoundTripper that dial to remote HTTPS endpoint with an alternative version of TLS implementation that attempts to imitate browsers' fingerprint. clientHelloID is the clientHello that uTLS attempts to imitate uTlsConfig is the TLS Configuration template backdropTransport is the transport that will be used for non-https traffic removeSNI indicates not to send Server Name Indication Extension returns a RoundTripper: its behaviour is documented at https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/76#note_2777161

func NewUnclaimedConnection

func NewUnclaimedConnection(conn net.Conn, expireTime time.Duration) *unclaimedConnection

Types

This section is empty.

Jump to

Keyboard shortcuts

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