Fix status and up cli output

This commit is contained in:
Theodor S. Midtlien
2026-09-18 13:17:21 +02:00
parent 64c84df357
commit 3d6591b053
2 changed files with 29 additions and 4 deletions
+5
View File
@@ -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