t2sconfig

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunModeWinTun     = "wintun"
	TunModeWinSyscall = "syscall"
	TunModeWater      = "water"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TunConfig

type TunConfig struct {
	TunName         *string
	TunAddress      *string
	TunGateway      *string
	TunGWMetric     *int
	TunMask         *string
	TunDNS          *string
	TunPersist      *bool
	TunMode         *string
	MTU             *int
	BlockOutsideDNS *bool
	PublicOnly      *bool
	EnableDNSCache  *bool
	ProxyType       *string
	ProxyServer     *string
	DefaultGateway  *string
	UDPTimeout      *time.Duration
	DNSFallback     *bool
}

func (*TunConfig) FillWithDefaultValue

func (config *TunConfig) FillWithDefaultValue()

func (*TunConfig) GetProxyHost

func (config *TunConfig) GetProxyHost() string

func (*TunConfig) GetTunDNS

func (config *TunConfig) GetTunDNS() []string

Jump to

Keyboard shortcuts

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