We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c81bb commit d205873Copy full SHA for d205873
1 file changed
libtailscale/ranges_calc/ranges_calc.go
@@ -111,6 +111,7 @@ func (s space) rangeToCIDRs(r ipRange) []netip.Prefix {
111
// prefixToRange converts a netip.Prefix to an ipRange with Start and End addresses.
112
// Start is the network address and End is the broadcast address.
113
func (s space) prefixToRange(p netip.Prefix) ipRange {
114
+ p = p.Masked()
115
start := s.addrToInt(p.Addr())
116
hostBits := int(s.bits) - p.Bits()
117
size := new(big.Int).Lsh(big.NewInt(1), uint(hostBits))
0 commit comments