mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 15:20:30 +00:00
Don't look up public keys for Yggdrasil native addresses
This commit is contained in:
parent
c7f2427de1
commit
7218b5a56c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user