config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapConfig

type BootstrapConfig struct {
	Peers     []string
	DNSDomain string
}

type CAConfig

type CAConfig struct {
	Enabled   bool
	DataDir   string
	JoinToken string
}

type Config

type Config struct {
	Node      NodeConfig
	Bootstrap BootstrapConfig
	CA        CAConfig
	Join      JoinConfig
	SOCKS     SOCKSConfig
	DNS       DNSConfig
	Exit      ExitConfig
	Scribe    ScribeConfig
	Tun       TunConfig
	Persist   PersistConfig
	Control   ControlConfig
}

func Defaults added in v0.2.0

func Defaults() *Config

Defaults returns a Config with sensible defaults.

type ControlConfig

type ControlConfig struct {
	Socket string
}

type DNSConfig

type DNSConfig struct {
	Enabled  bool
	Listen   string
	Services []struct {
		Name     string
		Port     uint16
		Priority uint16
	}
}

type ExitConfig

type ExitConfig struct {
	Enabled    bool
	CIDRs      []string
	RoutesFile string
}

type JoinConfig

type JoinConfig struct {
	RelayAddr string
	Token     string
}

type NodeConfig

type NodeConfig struct {
	Addr      string
	Listen    string
	TCPListen string
	DataDir   string
	NetworkID string
	LogLevel  string
}

type PersistConfig

type PersistConfig struct {
	Enabled  bool
	Interval int
}

type SOCKSConfig

type SOCKSConfig struct {
	Enabled bool
	Listen  string
}

type ScribeConfig

type ScribeConfig struct {
	Enabled bool
	Listen  string
}

type TunConfig

type TunConfig struct {
	Enabled bool
	Name    string
	CIDR    string
	FEC     bool
	Queues  int // multi-queue TUN readers (default 1, set higher for >1Gbps)
}

Jump to

Keyboard shortcuts

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