common

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig added in v1.2.1

func ParseConfig(config *Config, configFile string, cmdArgs *CmdArgs)

Types

type CmdArgs added in v1.2.1

type CmdArgs struct {
	LocalAddress        string
	RemoteAddress       string
	ServerHost          string
	DisableServerResolv bool
	ProxyKind           string
}

type Config

type Config struct {
	BufferSize          uint64
	ServerProxyMode     bool
	ProxyKind           string
	ProxyInfo           string
	LocalAddress        string
	RemoteAddress       string
	LocalAddressTCP     *net.TCPAddr
	RemoteAddressTCP    *net.TCPAddr
	ServerHost          string
	DisableServerResolv bool
	ConnectionInfo      string
	TLSEnabled          bool
	TLSCert             string
	TLSKey              string
	SNIHost             string
	LocalPayload        string
	RemotePayload       string
}

Jump to

Keyboard shortcuts

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