cli

package
v0.0.0-...-ab6dc77 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfig

func GetDefaultConfig() string

func Main

func Main(configPtr *string, printDefaultConfigPtr *bool)

Types

type Config

type Config struct {
	Tunnel struct {
		SetDefaultGateway bool                  `yaml:"set-default-gateway"`
		Ping              shared_cli.PingConfig `yaml:"ping"`
		Features          features.Config       `yaml:"features"`
	} `yaml:"tunnel"`

	Interface    iface.InterfaceConfig `yaml:"interface"`
	FirewallMark int                   `yaml:"firewall-mark"`

	Scripts shared.EventConfig `yaml:"scripts"`

	Client struct {
		Server  string      `yaml:"server"`
		Headers http.Header `yaml:"headers"`

		Proxy string `yaml:"proxy"`

		AuthFile string `yaml:"auth-file"`

		AutoReconnectDelay time.Duration `yaml:"auto-reconnect-delay"`

		TLS struct {
			CA          string               `yaml:"ca"`
			Certificate string               `yaml:"certificate"`
			Key         string               `yaml:"key"`
			ServerName  string               `yaml:"server-name"`
			Config      shared_cli.TLSConfig `yaml:"config"`
		} `yaml:"tls"`
	}
}

func Load

func Load(file string) (*Config, error)

Jump to

Keyboard shortcuts

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