mirror of https://github.com/slackhq/nebula.git
Add puncuation to doc comment (#1164)
* Add puncuation to doc comment * Fix list formatting inside `EncryptDanger` doc comment
This commit is contained in:
parent
97e9834f82
commit
8109cf2170
|
@ -1151,7 +1151,7 @@ func (lhh *LightHouseHandler) handleHostPunchNotification(n *NebulaMeta, vpnIp i
|
|||
}
|
||||
}
|
||||
|
||||
// ipMaskContains checks if testIp is contained by ip after applying a cidr
|
||||
// ipMaskContains checks if testIp is contained by ip after applying a cidr.
|
||||
// zeros is 32 - bits from net.IPMask.Size()
|
||||
func ipMaskContains(ip iputil.VpnIp, zeros iputil.VpnIp, testIp iputil.VpnIp) bool {
|
||||
return (testIp^ip)>>zeros == 0
|
||||
|
|
Loading…
Reference in New Issue