config

package
v0.0.0-...-53eedaf Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DNSServer  net.IP
	VPNDomains []string
	VPNIPs     []net.IP
}

Config holds config fields for vpnroutesd.

func Load

func Load(logger *zap.Logger, p string) (cfg Config, changed bool, err error)

Load reads and parses a vpnroutesd config file from p, which can be one of the following:

  1. filesystem path, e.g. /home/user/.vpnroutesd.toml
  2. https URL, e.g. https://internal.4seasontotallandscaping.com/.vpnroutesd.toml
  3. keybase filesystem path, e.g. keybase@alice://team/4seasontotallandscaping/vpn/.vpnroutesd.toml (alice is the system username, not keybase username)

Jump to

Keyboard shortcuts

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