mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Don't look up public keys for Yggdrasil native addresses
This commit is contained in:
parent
c7f2427de1
commit
7218b5a56c
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue