mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
Update zt via
This commit is contained in:
parent
ea710f9528
commit
b800b0dd25
@ -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": [
|
||||||
|
|||||||
@ -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": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user