Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyLeftToRight ¶
func CopyLoop ¶
CopyLoop is a standard copy loop. We don't care too much who's client and who's server
Types ¶
type BridgeServer ¶
type BridgeServer interface { Start() error Stop() }
func NewTCPServer ¶ added in v1.0.0
func NewTCPServer(ctx context.Context, stop context.CancelFunc, cfg ServerConfig, logger, debug *log.Logger) BridgeServer
NewTCPServer returns a new TCPServer
func NewUDPServer ¶ added in v1.0.0
func NewUDPServer(ctx context.Context, stop context.CancelFunc, cfg ServerConfig, logger, debug *log.Logger) BridgeServer
NewUDPServer returns a new UDPServer
type Obfs4Config ¶
type Obfs4Config struct { NodeID string `json:"node-id"` PrivateKey string `json:"private-key"` PublicKey string `json:"public-key"` DRBGSeed string `json:"drbg-seed"` IatMode int `json:"iat-mode"` }
Obfs4Config is an obfs4 specific configuration object
type ServerConfig ¶
type ServerConfig struct { OpenvpnAddr string Obfs4Config Obfs4Config StateDir string Obfs4ListenIP string Obfs4ListenPort int HoppingEnabled bool PortSeed int64 PortCount uint KCPConfig obfsvpn.KCPConfig QUICConfig obfsvpn.QUICConfig }
ServerConfig is the configuration for the obfsvpn server
type TCPServer ¶ added in v1.0.0
type TCPServer struct {
// contains filtered or unexported fields
}
TCPServer is a obfsvpn server
func (*TCPServer) Start ¶ added in v1.0.0
Start starts the obfsvpn server
Click to show internal directories.
Click to hide internal directories.