Forward a packet with sleeve if the source or dest peer lacks a short ID
This commit is contained in:
1 parent
e702234fdc
commit
35141a4aef
3 files changed
+43
-25
No files matched your search
@@ -754,6 +754,10 @@ func (fwd *fastDatapathForwarder) handleHeartbeatAck() {
|
||||
}
|
||||
|
||||
func (fwd *fastDatapathForwarder) Forward(key ForwardPacketKey) FlowOp {
|
||||
if !key.SrcPeer.HasShortID || !key.DstPeer.HasShortID {
|
||||
return nil
|
||||
}
|
||||
|
||||
fwd.lock.RLock()
|
||||
defer fwd.lock.RUnlock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user