mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-28 12:36:26 -08:00
derp: allow self node when verifying clients
Fixes #2408 Signed-off-by: Maddie Zhan <[email protected]>
This commit is contained in:
1 parent
05da2691a5
commit
d976a84d7e
1 file changed
+3
@@ -797,6 +797,9 @@ func (s *Server) verifyClient(clientKey key.Public, info *clientInfo) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to query local tailscaled status: %w", err)
|
||||
}
|
||||
if clientKey == status.Self.PublicKey {
|
||||
return nil
|
||||
}
|
||||
if _, exists := status.Peer[clientKey]; !exists {
|
||||
return fmt.Errorf("client %v not in set of peers", clientKey)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user