Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasqTCPServer ¶
type MasqTCPServer struct {
QUICPort int
HTTPSPort int
Handler http.Handler
TLSConfig *utls.Config
ForceHTTPS bool // Always 301 redirect from HTTP to HTTPS
}
MasqTCPServer covers the TCP parts of a standard web server (TCP based HTTP/HTTPS). We provide this as an option for masquerading, as some may consider a server "suspicious" if it only serves the QUIC protocol and not standard HTTP/HTTPS.
func (*MasqTCPServer) ListenAndServeHTTP ¶
func (s *MasqTCPServer) ListenAndServeHTTP(addr string) error
func (*MasqTCPServer) ListenAndServeHTTPS ¶
func (s *MasqTCPServer) ListenAndServeHTTPS(addr string) error
Click to show internal directories.
Click to hide internal directories.