mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 22:59:44 +00:00
Update zt
This commit is contained in:
parent
ffce72bbf1
commit
361446e953
@ -14,7 +14,9 @@ import (
|
|||||||
|
|
||||||
func (s *CasaOS) SetZerotierNetworkStatus(ctx echo.Context, networkId string) error {
|
func (s *CasaOS) SetZerotierNetworkStatus(ctx echo.Context, networkId string) error {
|
||||||
ip := `,"via":"10.147.19.0"`
|
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" {
|
if status == "online" {
|
||||||
ip = `,"via":""`
|
ip = `,"via":""`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user