Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

Zt update (#1146)

link4c7b3a749b39
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":""`
}