Skip to content

Commit

Permalink
Socket update (IceWhaleTech#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored Jun 1, 2023
1 parent 9bfe373 commit d911d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/v2/zerotier.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *CasaOS) GetZerotierInfo(ctx echo.Context) error {
via := gjson.GetBytes(res, "routes.0.via").Str
info.Id = utils.Ptr(gjson.GetBytes(res, "id").Str)
info.Name = &name
if len(via) != 0 {
if len(via) == 0 {
info.Status = utils.Ptr("online")
} else {
info.Status = utils.Ptr("offline")
Expand Down

0 comments on commit d911d80

Please sign in to comment.