ipn: pass through the prefix length from control.

Control sets this to /32 for IPv4 and /128 for IPv6.

Signed-off-by: David Anderson <danderson@tailscale.com>
josh/no-goroutine-per-udp-read-2
David Anderson 4 years ago
parent 4c8ccd6dd6
commit dfbde3d3aa

@ -1257,7 +1257,7 @@ func routerConfig(cfg *wgcfg.Config, prefs *Prefs) *router.Config {
for _, addr := range cfg.Addresses {
addrs = append(addrs, wgcfg.CIDR{
IP: addr.IP,
Mask: 32,
Mask: addr.Mask,
})
}

Loading…
Cancel
Save