5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 06:01:37 +00:00

Don't look up public keys for Yggdrasil native addresses

This commit is contained in:
Neil Alexander 2018-11-05 23:12:26 +00:00
parent c7f2427de1
commit 7218b5a56c
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -96,6 +96,12 @@ func (c *cryptokey) addRoute(cidr string, dest string) error {
}
func (c *cryptokey) getPublicKeyForAddress(addr address) (boxPubKey, error) {
// Check if the address is a valid Yggdrasil address - if so it
// is exempt from all CKR checking
if addr.isValid() {
return
}
// Check if there's a cache entry for this addr
if route, ok := c.ipv6cache[addr]; ok {
var box boxPubKey