Socket update (#1159)
This commit is contained in:
parent
9bfe37305c
commit
d911d80254
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ func (s *CasaOS) GetZerotierInfo(ctx echo.Context) error {
|
||||||
via := gjson.GetBytes(res, "routes.0.via").Str
|
via := gjson.GetBytes(res, "routes.0.via").Str
|
||||||
info.Id = utils.Ptr(gjson.GetBytes(res, "id").Str)
|
info.Id = utils.Ptr(gjson.GetBytes(res, "id").Str)
|
||||||
info.Name = &name
|
info.Name = &name
|
||||||
if len(via) != 0 {
|
if len(via) == 0 {
|
||||||
info.Status = utils.Ptr("online")
|
info.Status = utils.Ptr("online")
|
||||||
} else {
|
} else {
|
||||||
info.Status = utils.Ptr("offline")
|
info.Status = utils.Ptr("offline")
|
||||||
|
|
Loading…
Reference in a new issue