mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-09 12:21:15 +01:00
add early message forward
This commit is contained in:
parent
d98df551c0
commit
5a37be01c3
@ -76,10 +76,10 @@ func (s *Server) Send(ctx context.Context, msg *proto.EncryptedMessage) (*proto.
|
||||
return &proto.EncryptedMessage{}, nil
|
||||
}
|
||||
|
||||
// if _, found := s.registry.Get(msg.RemoteKey); found {
|
||||
// s.forwardMessageToPeer(ctx, msg)
|
||||
// return &proto.EncryptedMessage{}, nil
|
||||
// }
|
||||
if _, found := s.registry.Get(msg.RemoteKey); found {
|
||||
s.forwardMessageToPeer(ctx, msg)
|
||||
return &proto.EncryptedMessage{}, nil
|
||||
}
|
||||
|
||||
return s.dispatcher.SendMessage(context.Background(), msg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user