mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
chore: add a single message to signal server
This commit is contained in:
@@ -31,8 +31,8 @@ func NewServer() *SignalExchangeServer {
|
||||
|
||||
func (s *SignalExchangeServer) Connect(ctx context.Context, msg *proto.Message) (*proto.Message, error) {
|
||||
|
||||
if _, found := s.registry.Peers[msg.Key]; found {
|
||||
return &proto.Message{}, nil
|
||||
if _, found := s.registry.Peers[msg.Key]; !found {
|
||||
return nil, fmt.Errorf("unknown peer %s", msg.Key)
|
||||
}
|
||||
|
||||
if dstPeer, found := s.registry.Peers[msg.RemoteKey]; found {
|
||||
|
||||
Reference in New Issue
Block a user