This commit is contained in:
link 2023-05-29 15:38:39 +08:00 committed by GitHub
parent e86a61596b
commit 4c7b3a749b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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