4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-06 06:24:06 +00:00

Correctly classify link-local addresses in the TCP handler, fix AllowedPublicEncryptionKeys warning

This commit is contained in:
Neil Alexander
2019-03-12 16:03:02 +00:00
parent c388885a92
commit dc3a05f13a
2 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,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.Warnf("%s connection to %s forbidden: AllowedEncryptionPublicKeys does not contain key %s",
intf.link.core.log.Warnf("%s connection from %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