mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Update daemon server adminURL and managementURL fields (#314)
Removed the UP call in the login function Attempt login on change to get status
This commit is contained in:
@@ -247,11 +247,6 @@ func (s *serviceClient) login() error {
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := s.conn.Up(s.ctx, &proto.UpRequest{}); err != nil {
|
||||
log.Errorf("up service: %v", err)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -276,6 +271,12 @@ func (s *serviceClient) menuUpClick() error {
|
||||
}
|
||||
}
|
||||
|
||||
status, err = conn.Status(s.ctx, &proto.StatusRequest{})
|
||||
if err != nil {
|
||||
log.Errorf("get service status: %v", err)
|
||||
return err
|
||||
}
|
||||
|
||||
if status.Status != string(internal.StatusIdle) {
|
||||
log.Warnf("already connected")
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user