config

package
v0.0.0-...-fa535dc Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	UseTLS bool

	// For when your VPN already provides encryption.
	SkipEncryption bool // turn off both SSH and TLS.

	AllowNewServer          bool // only give once to prevent MITM.
	TestAllowOneshotConnect bool
	CertPath                string
	KeyPath                 string
	ServerHost              string // ip address
	ServerPort              int
	ServerInternalHost      string // ip address
	ServerInternalPort      int
	ServerHostOverride      string

	Username             string
	PrivateKeyPath       string
	ClientKnownHostsPath string

	CpuProfilePath string

	PayloadSizeMegaBytes int
}

func (*ClientConfig) DefineFlags

func (c *ClientConfig) DefineFlags(fs *flag.FlagSet)

func (*ClientConfig) SetupSSH

func (c *ClientConfig) SetupSSH(opts *[]grpc.DialOption)

func (*ClientConfig) SetupTLS

func (c *ClientConfig) SetupTLS(opts *[]grpc.DialOption)

func (*ClientConfig) ValidateConfig

func (c *ClientConfig) ValidateConfig() error

Jump to

Keyboard shortcuts

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