From 361446e9533783d7c1c784a22c5a6a07c2f0a72d Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Mon, 29 May 2023 08:37:49 +0100 Subject: [PATCH] Update zt --- route/v2/zerotier.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/route/v2/zerotier.go b/route/v2/zerotier.go index c7a7205..451fd84 100644 --- a/route/v2/zerotier.go +++ b/route/v2/zerotier.go @@ -14,7 +14,9 @@ import ( func (s *CasaOS) SetZerotierNetworkStatus(ctx echo.Context, networkId string) error { ip := `,"via":"10.147.19.0"` - status := ctx.Request().PostFormValue("status") + m := make(map[string]string) + ctx.Bind(&m) + status := m["status"] if status == "online" { ip = `,"via":""` }