Skip to content

Commit

Permalink
fix: netip.Addr to net.IPNet conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Jun 30, 2022
1 parent 55111c3 commit a34b27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wg/wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (s *State) SetUpInterface(nodes []common.Node) error {
func addrToIPNet(addr netip.Addr) *net.IPNet {
return &net.IPNet{
IP: addr.AsSlice(),
Mask: net.CIDRMask(addr.BitLen(), 0),
Mask: net.CIDRMask(addr.BitLen(), addr.BitLen()),
}
}

Expand Down

0 comments on commit a34b27b

Please sign in to comment.