Documentation ¶
Index ¶
- Variables
- 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 GetDirectClient() *http.Client
- func GetProxyURL(fixedURL *url.URL) func(*http.Request) (*url.URL, error)
- func Reload()
- func StartProxy() *http.Server
- type PacStorage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Proxy ... Proxy = goproxy.NewProxyHttpServer() // ProxyPort ... ProxyPort = 65222 )
View Source
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 ...
View Source
var ( // PacParser ... PacParser = &PacStorage{} )
Functions ¶
func CustomDialContext ¶
CustomDialContext ...
func GetProxyURL ¶
GetProxyURL ...
Types ¶
type PacStorage ¶
type PacStorage struct {
// contains filtered or unexported fields
}
PacStorage ...
Click to show internal directories.
Click to hide internal directories.