mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
(broken state) more WIP on tuntap stuff
This commit is contained in:
parent
0cff56fcc1
commit
5b22392c66
3 changed files with 96 additions and 2 deletions
|
@ -70,6 +70,7 @@ func (k *keyStore) sendToAddress(addr address.Address, bs []byte) {
|
|||
delete(k.addrBuffer, addr)
|
||||
}
|
||||
})
|
||||
panic("TODO") // TODO send lookup
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -97,10 +98,11 @@ func (k *keyStore) sendToSubnet(subnet address.Subnet, bs []byte) {
|
|||
delete(k.subnetBuffer, subnet)
|
||||
}
|
||||
})
|
||||
panic("TODO") // TODO send lookup
|
||||
}
|
||||
}
|
||||
|
||||
func (k *keyStore) update(key ed25519.PublicKey) {
|
||||
func (k *keyStore) update(key ed25519.PublicKey) *keyInfo {
|
||||
k.mutex.Lock()
|
||||
defer k.mutex.Unlock()
|
||||
var kArray keyArray
|
||||
|
@ -130,6 +132,7 @@ func (k *keyStore) update(key ed25519.PublicKey) {
|
|||
}
|
||||
}
|
||||
k.resetTimeout(info)
|
||||
return info
|
||||
}
|
||||
|
||||
func (k *keyStore) resetTimeout(info *keyInfo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue