Skip to content

Commit

Permalink
Zt update (IceWhaleTech#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored May 29, 2023
1 parent e86a615 commit 4c7b3a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion route/v2/zerotier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":""`
}
Expand Down

0 comments on commit 4c7b3a7

Please sign in to comment.