Clear cryptographic state when interface down
Attempts to clear the cryptographic state for every peer when the device goes down.
This commit is contained in:
parent
029410b118
commit
4f97b52ea6
5 changed files with 58 additions and 41 deletions
|
|
@ -38,5 +38,7 @@ func (kp *KeyPairs) Current() *KeyPair {
|
|||
}
|
||||
|
||||
func (device *Device) DeleteKeyPair(key *KeyPair) {
|
||||
device.indices.Delete(key.localIndex)
|
||||
if key != nil {
|
||||
device.indices.Delete(key.localIndex)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue