mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 23:09:08 +01:00
Fix status and up cli output
This commit is contained in:
@@ -338,6 +338,11 @@ func runInDaemonMode(ctx context.Context, cmd *cobra.Command, pm *profilemanager
|
||||
}
|
||||
|
||||
if status.Status == string(internal.StatusConnected) {
|
||||
if status.GetFullStatus() == nil {
|
||||
cmd.Println("Already connected and the connection belongs to another user.")
|
||||
cmd.Println("Run 'netbird down' as a privileged user to be able to claim the session with this user.")
|
||||
return nil
|
||||
}
|
||||
if !profileSwitched {
|
||||
cmd.Println("Already connected")
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user