From 4bc342ec137065dc9c9799716e26ecf452f915cf Mon Sep 17 00:00:00 2001 From: vadym Date: Sun, 11 Jul 2021 12:23:25 +0300 Subject: [PATCH] 1. fixed imports --- src/tuntap/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuntap/conn.go b/src/tuntap/conn.go index ddd89e9b..8e47b1a6 100644 --- a/src/tuntap/conn.go +++ b/src/tuntap/conn.go @@ -2,12 +2,12 @@ package tuntap import ( "bytes" + "crypto/ed25519" "errors" "time" "github.com/Arceliar/phony" "github.com/yggdrasil-network/yggdrasil-go/src/address" - "github.com/yggdrasil-network/yggdrasil-go/src/crypto" "github.com/yggdrasil-network/yggdrasil-go/src/util" "github.com/yggdrasil-network/yggdrasil-go/src/yggdrasil" "golang.org/x/net/icmp" @@ -90,7 +90,7 @@ func (s *tunConn) _read(bs []byte) (err error) { // The destination address isn't in our CKR allowed range skip = true } else if key, err := s.tun.ckr.getPublicKeyForAddress(srcAddr, addrlen); err == nil { - if *s.conn.RemoteAddr().(*crypto.BoxPubKey) == key { + if *s.conn.RemoteAddr().(*ed25519.PublicKey) == key { // This is the one allowed CKR case, where source and destination addresses are both good } else { // The CKR key associated with this address doesn't match the sender's NodeID