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": [
{
"target": "10.147.20.0/24",
"via": "",
"target": "10.147.20.0/24"
}
],
"rules": [

View File

@ -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": [