Change log message about AllowedEncryptionPublicKeys from Debug to Warn

This commit is contained in:
Arceliar 2019-02-28 18:49:34 -06:00
parent 2569242050
commit 371b5ca6a2

View File

@ -116,7 +116,7 @@ func (intf *linkInterface) handler() error {
}
// Check if we're authorized to connect to this key / IP
if !intf.incoming && !intf.force && !intf.link.core.peers.isAllowedEncryptionPublicKey(&meta.box) {
intf.link.core.log.Debugf("%s connection to %s forbidden: AllowedEncryptionPublicKeys does not contain key %s",
intf.link.core.log.Warnf("%s connection to %s forbidden: AllowedEncryptionPublicKeys does not contain key %s",
strings.ToUpper(intf.info.linkType), intf.info.remote, hex.EncodeToString(meta.box[:]))
intf.msgIO.close()
return nil