conf

package
v1.6.24 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VersionOne is the first protocol version.
	VersionOne = 1

	// CurrentVersion always holds the newest version in production.
	CurrentVersion = 1
)

Variables

View Source
var (
	MainMapName  = "main"
	MainMapScope = hub.ScopePublic
)

Primary Map Configuration.

Functions

func BindAddrIsSet

func BindAddrIsSet() bool

BindAddrIsSet returns whether any bind address is set.

func Client

func Client() bool

Client returns whether this is a client.

func EnableClient

func EnableClient(enable bool)

EnableClient enables the client mode.

func EnableIntegration added in v1.6.19

func EnableIntegration(enable bool)

EnableIntegration enables the integrated mode.

func EnablePublicHub

func EnablePublicHub(enable bool)

EnablePublicHub enables the public hub mode.

func GetBindAddr

func GetBindAddr(dialNetwork string) net.Addr

GetBindAddr returns an address with the preferred binding address for the given dial network. The dial network must have a suffix specifying the IP version.

func GetBindIPs

func GetBindIPs() []net.IP

GetBindIPs returns the preferred binding IPs. Returns a slice with a single nil IP if no preferred binding IPs are set.

func HubHasIPv4

func HubHasIPv4() bool

HubHasIPv4 returns whether the Hub has IPv4 support.

func HubHasIPv6

func HubHasIPv6() bool

HubHasIPv6 returns whether the Hub has IPv6 support.

func Integrated added in v1.6.19

func Integrated() bool

Integrated returns whether SPN is running integrated into Portmaster.

func PublicHub

func PublicHub() bool

PublicHub returns whether this is a public Hub.

func SetBindAddr

func SetBindAddr(ip4, ip6 net.IP)

SetBindAddr sets the preferred connect (bind) addresses.

func SetHubNetworks

func SetHubNetworks(v4, v6 bool)

SetHubNetworks sets the available IP networks on the Hub.

Types

This section is empty.

Jump to

Keyboard shortcuts

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