mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
wgengine/filter: fix linter warning.
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
parent
5e5e5db75f
commit
ee3395e63a
@ -47,8 +47,7 @@ func (n Net) String() string {
|
||||
var NetNone = Net{^IP(0), ^IP(0)}
|
||||
|
||||
func Netmask(bits int) IP {
|
||||
var b uint32
|
||||
b = ^uint32((1 << (32 - bits)) - 1)
|
||||
b := ^uint32((1 << (32 - bits)) - 1)
|
||||
return IP(b)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user