Documentation ¶
Index ¶
- Variables
- func CloudflareResolver() *net.Resolver
- func CustomDial(network, addr string) (net.Conn, error)
- func CustomDialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func CustomTLS(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error)
- func GetClient() *http.Client
- func GetProxyURL(fixedURL *url.URL) func(*http.Request) (*url.URL, error)
- func GoogleResolver() *net.Resolver
- func OpennicResolver() *net.Resolver
- func Quad9Resolver() *net.Resolver
- func Reload()
- func StartProxy() *http.Server
- type PacStorage
Constants ¶
This section is empty.
Variables ¶
var ( // Proxy ... Proxy = goproxy.NewProxyHttpServer() // ProxyPort ... ProxyPort = 65222 )
var AlwaysHTTPMitm goproxy.FuncHttpsHandler = func(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) { return &goproxy.ConnectAction{Action: goproxy.ConnectMitm, TLSConfig: CustomTLS(&goproxy.GoproxyCa)}, host }
AlwaysHTTPMitm ...
var ( // PacParser ... PacParser = &PacStorage{} )
Functions ¶
func CloudflareResolver ¶
CloudflareResolver returns Resolver that uses Cloudflare service on 1.1.1.1 and 1.0.0.1 on port 853.
See https://developers.cloudflare.com/1.1.1.1/dns-over-tls/ for details.
func CustomDialContext ¶
CustomDialContext ...
func GetProxyURL ¶
GetProxyURL ...
func GoogleResolver ¶
GoogleResolver returns Resolver that uses Google Public DNS service on 8.8.8.8 and 8.8.4.4 on port 853.
See https://developers.google.com/speed/public-dns/ for details.
func OpennicResolver ¶
OpennicResolver returns Resolver that uses Opennic Public DNS service on port 853.
See https://servers.opennicproject.org/ for details.
func Quad9Resolver ¶
Quad9Resolver returns Resolver that uses Quad9 service on 9.9.9.9 and 149.112.112.112 on port 853.
See https://quad9.net/faq/ for details.
Types ¶
type PacStorage ¶
type PacStorage struct {
// contains filtered or unexported fields
}
PacStorage ...