Modify source address check for CKR

This commit is contained in:
Neil Alexander 2018-11-05 23:22:45 +00:00
parent 7218b5a56c
commit cfdbc481a5
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 7 additions and 6 deletions

View file

@ -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