wgengine/router: document some fields a bit more

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1635/head
Brad Fitzpatrick 4 years ago
parent 35ab4020c7
commit e64383a80e

@ -56,8 +56,16 @@ func Cleanup(logf logger.Logf, interfaceName string) {
// Config is the subset of Tailscale configuration that is relevant to // Config is the subset of Tailscale configuration that is relevant to
// the OS's network stack. // the OS's network stack.
type Config struct { type Config struct {
// LocalAddrs are the address(es) for this node. This is
// typically one IPv4/32 (the 100.x.y.z CGNAT) and one
// IPv6/128 (Tailscale ULA).
LocalAddrs []netaddr.IPPrefix LocalAddrs []netaddr.IPPrefix
Routes []netaddr.IPPrefix // routes to point into the Tailscale interface
// Routes are the routes that point in to the Tailscale
// interface. These are the /32 and /128 routes to peers, as
// well as any other subnets that peers are advertising and
// this node has chosen to use.
Routes []netaddr.IPPrefix
DNS dns.Config DNS dns.Config

Loading…
Cancel
Save