mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Modify source address check for CKR
This commit is contained in:
parent
7218b5a56c
commit
cfdbc481a5
2 changed files with 7 additions and 6 deletions
|
@ -99,7 +99,7 @@ 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
|
||||
return boxPubKey{}, errors.New("Cannot look up CKR for Yggdrasil addresses")
|
||||
}
|
||||
|
||||
// Check if there's a cache entry for this addr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue