diff --git a/route/v1/zerotier.go b/route/v1/zerotier.go index 0e3b766..a2ca1b3 100644 --- a/route/v1/zerotier.go +++ b/route/v1/zerotier.go @@ -170,8 +170,7 @@ func CreateNet(address string) string { ], "routes": [ { - "target": "10.147.20.0/24", - "via": "", + "target": "10.147.20.0/24" } ], "rules": [ diff --git a/route/v2/zerotier.go b/route/v2/zerotier.go index 451fd84..3e54aeb 100644 --- a/route/v2/zerotier.go +++ b/route/v2/zerotier.go @@ -18,7 +18,7 @@ func (s *CasaOS) SetZerotierNetworkStatus(ctx echo.Context, networkId string) er ctx.Bind(&m) status := m["status"] if status == "online" { - ip = `,"via":""` + ip = `` } body := `{ "routes": [