Update zt via

This commit is contained in:
LinkLeong 2023-05-31 11:01:33 +01:00
parent ea710f9528
commit b800b0dd25
2 changed files with 2 additions and 3 deletions

View File

@ -170,8 +170,7 @@ func CreateNet(address string) string {
], ],
"routes": [ "routes": [
{ {
"target": "10.147.20.0/24", "target": "10.147.20.0/24"
"via": "",
} }
], ],
"rules": [ "rules": [

View File

@ -18,7 +18,7 @@ func (s *CasaOS) SetZerotierNetworkStatus(ctx echo.Context, networkId string) er
ctx.Bind(&m) ctx.Bind(&m)
status := m["status"] status := m["status"]
if status == "online" { if status == "online" {
ip = `,"via":""` ip = ``
} }
body := `{ body := `{
"routes": [ "routes": [