diff options
Diffstat (limited to 'device/device.go')
-rw-r--r-- | device/device.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/device/device.go b/device/device.go index 0b909a7..8c08f1c 100644 --- a/device/device.go +++ b/device/device.go @@ -240,9 +240,6 @@ func (device *Device) SetPrivateKey(sk NoisePrivateKey) error { for _, peer := range device.peers.keyMap { handshake := &peer.handshake handshake.precomputedStaticStatic = device.staticIdentity.privateKey.sharedSecret(handshake.remoteStatic) - if isZero(handshake.precomputedStaticStatic[:]) { - panic("an invalid peer public key made it into the configuration") - } expiredPeers = append(expiredPeers, peer) } |