ipn: pass through the prefix length from control.
Control sets this to /32 for IPv4 and /128 for IPv6.
@@ -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,
})
}
