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