Merge pull request #3783 from weaveworks/issue-3781
send FastDatapathCryptoInitSARemote control message only if encryption is enabled
This commit is contained in:
1 file changed
+6
-4
+6
-4
@@ -694,10 +694,12 @@ func (fwd *fastDatapathForwarder) Confirm() {
|
|||||||
|
|
||||||
fwd.lock.Unlock() // unlock before calling send() which may block
|
fwd.lock.Unlock() // unlock before calling send() which may block
|
||||||
|
|
||||||
if err := fwd.sendControlMsg(FastDatapathCryptoInitSARemote, controlMsg); err != nil {
|
if len(controlMsg) > 0 {
|
||||||
log.Error(fwd.logPrefix(), "ipsec send InitSARemote failed: ", err)
|
if err := fwd.sendControlMsg(FastDatapathCryptoInitSARemote, controlMsg); err != nil {
|
||||||
fwd.handleError(err)
|
log.Error(fwd.logPrefix(), "ipsec send InitSARemote failed: ", err)
|
||||||
return
|
fwd.handleError(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
go fwd.doHeartbeats()
|
go fwd.doHeartbeats()
|
||||||
|
|||||||
Reference in new issue
Block a user