Zt update (#1146)
This commit is contained in:
parent
e86a61596b
commit
4c7b3a749b
1 changed files with 3 additions and 1 deletions
|
@ -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":""`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue