config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultMeshCIDR = "10.100.0.0/16"

DefaultMeshCIDR is the default mesh IP range used when no --mesh-cidr is specified.

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