Documentation
¶
Overview ¶
Package vpnconfig contains the VPN configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Gateway net.IP PID int Timeout int Device Device IPv4 Address IPv6 Address DNS DNS Split Split Flags Flags }
Config is a VPN configuration.
func NewFromJSON ¶
NewFromJSON returns a new config parsed from the json in b.
type Flags ¶
type Flags struct {
DisableAlwaysOnVPN bool
}
Flags are other configuration settings in Config.
type Split ¶
type Split struct { ExcludeIPv4 []*net.IPNet ExcludeIPv6 []*net.IPNet ExcludeDNS []string ExcludeVirtualSubnetsOnlyIPv4 bool }
Split is a split routing configuration in Config.
func (*Split) DNSExcludes ¶
DNSExcludes returns a list of DNS-based split excludes from the split routing configuration. The list contains domain names including the trailing ".".
Click to show internal directories.
Click to hide internal directories.