mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 22:09:09 +02:00
Add known mark to identity, fix credentials comparison bugs
This commit is contained in:
@@ -35,7 +35,7 @@ func PeerIdentity(conn net.Conn) (Identity, error) {
|
||||
return Identity{}, fmt.Errorf("read LOCAL_PEERCRED: %w", credErr)
|
||||
}
|
||||
|
||||
id := Identity{UID: cred.Uid}
|
||||
id := Identity{UID: cred.Uid, known: true}
|
||||
if cred.Ngroups > 0 {
|
||||
id.GID = cred.Groups[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user