config

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MPL-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// DefaultListenPort is the default port to listen on.
	DefaultListenPort = 51820
	// The default search domain to use for networks (if not specified).
	DefaultDomain = "my.nzzy.net."
)

Variables

This section is empty.

Functions

func FromINI added in v0.16.0

func FromINI(r io.Reader) (conf *latestconfig.Config, err error)

FromINI reads a WireGuard INI configuration from the given reader and returns the equivalent config object. This should only be used for importing existing configurations.

func FromYAML

func FromYAML(r io.Reader) (conf *latestconfig.Config, err error)

FromYAML reads the given reader and returns a config object.

func StripINI added in v0.23.6

func StripINI(dst io.Writer, src io.Reader) error

StripINI removes `wg-quick` specific configuration from the given INI file. This is analogous to the `wg-quick strip` command.

func ToINI added in v0.17.0

func ToINI(w io.Writer, versionedConf types.Config) error

ToINI writes the given config object to the given writer in the WireGuard INI format. This should only be used for exporting configuration.

func ToYAML added in v0.17.0

func ToYAML(w io.Writer, versionedConf types.Config) error

ToYAML writes the given config object to the given writer.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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