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()
- type CustomProxy
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 ...
Functions ¶
func CustomDialContext ¶
CustomDialContext ...
func GetProxyURL ¶
GetProxyURL ...
Types ¶
type CustomProxy ¶
CustomProxy stores http.Server with field showing there was an error while listening.
Click to show internal directories.
Click to hide internal directories.