mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-26 14:29:08 +01:00
enforce ssh
This commit is contained in:
@@ -1291,12 +1291,12 @@ func getPeerLoginInfo(ctx context.Context, transaction store.Store, accountID st
|
|||||||
return nil, nil, false, err
|
return nil, nil, false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
enableSSH, err := isPeerSSHEnabled(ctx, transaction, accountID, peer)
|
_, err := isPeerSSHEnabled(ctx, transaction, accountID, peer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, false, err
|
return nil, nil, false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return network, postureChecks, enableSSH, nil
|
return network, postureChecks, true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func isPeerSSHEnabled(ctx context.Context, transaction store.Store, accountID string, peer *nbpeer.Peer) (bool, error) {
|
func isPeerSSHEnabled(ctx context.Context, transaction store.Store, accountID string, peer *nbpeer.Peer) (bool, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user