mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 14:49:52 +00:00
Update zt via
This commit is contained in:
parent
ea710f9528
commit
b800b0dd25
@ -170,8 +170,7 @@ func CreateNet(address string) string {
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"target": "10.147.20.0/24",
|
||||
"via": "",
|
||||
"target": "10.147.20.0/24"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
|
||||
@ -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": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user