Explorar o código

Socket update (#1159)

link %!s(int64=2) %!d(string=hai) anos
pai
achega
d911d80254
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      route/v2/zerotier.go

+ 1 - 1
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")