masq

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL