detect

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDeviceRouter

func IsDeviceRouter(dev *wgtypes.Device) bool

IsDeviceRouter tries to detect whether the local device is a router for other peers. Currently it does this by assuming that, if nobody else is a router, it probably is. TODO: try to check local networking config for signs of routing configuration

func IsPeerRouter

func IsPeerRouter(peer *wgtypes.Peer) bool

IsPeerRouter considers a router to be a peer that has a global unicast allowed IP with a CIDR mask less than the full IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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