Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigTemplate = tls.Config{ MinVersion: tls.VersionTLS12, CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256}, PreferServerCipherSuites: true, CipherSuites: []uint16{ tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_RSA_WITH_AES_256_CBC_SHA, }, }
Functions ¶
This section is empty.
Types ¶
type BumpTLS ¶
type BumpTLS struct {
// contains filtered or unexported fields
}
func NewBumpTLS ¶
NewBumpTLS Creates a new BumpTLS instance
func (*BumpTLS) GetConfigByName ¶
GetConfigByName generates a configuration for the server the client is attempting to connect to
func (*BumpTLS) GetConfigForClient ¶
GetConfigForClient generates a configuration for the server the client is attempting to connect to
type HTTPFrontend ¶
type HTTPFrontend struct { Proxy // contains filtered or unexported fields }
HTTPFrontend is a http subdomain based re-mapping proxy
func NewHTTPFrontend ¶
func NewHTTPFrontend(address, port, certFile, keyFile, certDir string) (*HTTPFrontend, error)
NewHTTPFrontend is an http frontend
func (*HTTPFrontend) BindProxy ¶
func (h *HTTPFrontend) BindProxy(p Proxy)
BindProxy binds the underlying proxy to the frontend
func (*HTTPFrontend) Run ¶
func (h *HTTPFrontend) Run()
func (*HTTPFrontend) ServeHTTP ¶
func (h *HTTPFrontend) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HTTPFrontend) Stop ¶
func (h *HTTPFrontend) Stop()
type SingleListener ¶
type SingleListener struct {
// contains filtered or unexported fields
}
func NewSingleListener ¶
func NewSingleListener(conn net.Conn) SingleListener
func (*SingleListener) Addr ¶
func (sl *SingleListener) Addr() net.Addr
func (*SingleListener) Close ¶
func (sl *SingleListener) Close() error
Click to show internal directories.
Click to hide internal directories.