Skip to content

Commit

Permalink
Merge pull request #1141 from mrpalide/fix/improve-vpn-app-status
Browse files Browse the repository at this point in the history
Set Status=3 for Connecting of VPN-Client App
  • Loading branch information
jdknives authored Apr 6, 2022
2 parents 4aa8295 + cca6c0f commit 21cd90d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/app/launcher/app_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const (

// AppStatusErrored represents status of an errored App.
AppStatusErrored

// AppVPNClientConnecting represents status of VPN client connecting.
AppVPNClientConnecting
)

// AppState defines state parameters for a registered App.
Expand Down
4 changes: 4 additions & 0 deletions pkg/app/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire/internal/vpn"
"github.com/skycoin/skywire/pkg/app/appcommon"
"github.com/skycoin/skywire/pkg/app/appnet"
"github.com/skycoin/skywire/pkg/app/appserver"
Expand Down Expand Up @@ -202,6 +203,9 @@ func (l *Launcher) AppStates() []*AppState {
if connSummary != nil {
state.Status = AppStatusRunning
}
if state.DetailedStatus == vpn.ClientStatusConnecting {
state.Status = AppVPNClientConnecting
}
}
states = append(states, state)
}
Expand Down

0 comments on commit 21cd90d

Please sign in to comment.