Documentation ¶
Overview ¶
Package tlsproxy contains a censoring TLS proxy. Most traffic is passed through using the SNI to choose the hostname to connect to. Specific offending SNIs are censored by returning a TLS alert to the client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CensoringProxy ¶
type CensoringProxy struct {
// contains filtered or unexported fields
}
CensoringProxy is a censoring TLS proxy
func NewCensoringProxy ¶
func NewCensoringProxy( keywords []string, uncensored netx.Dialer, ) *CensoringProxy
NewCensoringProxy creates a new CensoringProxy instance using the specified list of keywords to censor. keywords is the list of keywords that trigger censorship if any of them appears in the SNII record of a ClientHello. dnsNetwork and dnsAddress are settings to configure the upstream, non censored DNS.
Click to show internal directories.
Click to hide internal directories.