mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +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 @@ var NetAny = Net{0, 0}
|
|||||||
var NetNone = Net{^IP(0), ^IP(0)}
|
var NetNone = Net{^IP(0), ^IP(0)}
|
||||||
|
|
||||||
func Netmask(bits int) IP {
|
func Netmask(bits int) IP {
|
||||||
var b uint32
|
b := ^uint32((1 << (32 - bits)) - 1)
|
||||||
b = ^uint32((1 << (32 - bits)) - 1)
|
|
||||||
return IP(b)
|
return IP(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user