From d911d8025462454f8b8b66e2062308cf92267908 Mon Sep 17 00:00:00 2001 From: link Date: Thu, 1 Jun 2023 10:22:04 +0800 Subject: [PATCH] Socket update (#1159) --- route/v2/zerotier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/v2/zerotier.go b/route/v2/zerotier.go index 3e54aeb..9544cc5 100644 --- a/route/v2/zerotier.go +++ b/route/v2/zerotier.go @@ -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")