Documentation ¶
Overview ¶
Package uncensored contains code used by Jafar to evade its own censorship efforts by taking alternate routes.
Index ¶
- Variables
- type Client
- func (c *Client) Address() string
- func (c *Client) CloseIdleConnections()
- func (c *Client) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (c *Client) LookupHTTPS(ctx context.Context, domain string) (*model.HTTPSSvc, error)
- func (c *Client) LookupHost(ctx context.Context, domain string) ([]string, error)
- func (c *Client) LookupNS(ctx context.Context, domain string) ([]*net.NS, error)
- func (c *Client) Network() string
- func (c *Client) RoundTrip(req *http.Request) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = Must(NewClient(""))
DefaultClient is the default client for DNS, HTTP, and TCP.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is DNS, HTTP, and TCP client.
func Must ¶
Must panics if it's not possible to create a Client. Usually you should use it like `uncensored.Must(uncensored.NewClient(URL))`.
func (*Client) CloseIdleConnections ¶
func (c *Client) CloseIdleConnections()
CloseIdleConnections implement HTTPRoundTripper.CloseIdleConnections
func (*Client) DialContext ¶
DialContext implements Dialer.DialContext
func (*Client) LookupHTTPS ¶ added in v3.14.0
LookupHTTPS implements model.Resolver.LookupHTTPS.
func (*Client) LookupHost ¶
LookupHost implements Resolver.LookupHost
Click to show internal directories.
Click to hide internal directories.