cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "0.2.1"
)

Variables

This section is empty.

Functions

func Run

func Run() int

func RunObscure

func RunObscure() error

Types

type Config

type Config struct {
	Server       string   `yaml:"server"`
	Username     string   `yaml:"username"`
	Password     string   `yaml:"password"`
	PfxPath      string   `yaml:"pfx_path"`
	PfxPassword  string   `yaml:"pfx_password"`
	Protocol     string   `yaml:"protocol"`
	UserAgent    string   `yaml:"user_agent"`
	BaseMTU      int      `yaml:"base_mtu"`
	SplitRoutes  []string `yaml:"split_routes"`
	DNSDomains   []string `yaml:"dns_domains"`
	VerifyURL    string   `yaml:"verify_url"`
	RPCAddr      string   `yaml:"rpc_addr"`
	DebugLogPath string   `yaml:"debug_log_path"`

	ServerCert string `yaml:"server_cert"`
}

type EndpointVerification

type EndpointVerification struct {
	Host       string
	DNSServers []string
	Addresses  []string
	Resolved   bool
	HTTPStatus int
	Attempts   int
	Error      string
	Duration   time.Duration
}

func (EndpointVerification) HTTPOK

func (v EndpointVerification) HTTPOK() bool

type PFXCredentials

type PFXCredentials struct {
	Certificate tls.Certificate
	RootCAs     *x509.CertPool
}

Jump to

Keyboard shortcuts

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