Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7a56b1dde | ||
|
|
37446ea958 | ||
|
|
1b28b196a0 | ||
|
|
1a5ab341ab |
@@ -89,5 +89,9 @@ func (DashboardApi) ConnectionList(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(connections) <= 0 {
|
||||||
|
connections = []vo.DataTraffic{}
|
||||||
|
}
|
||||||
|
|
||||||
response.R(c).OkWithData(connections)
|
response.R(c).OkWithData(connections)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ func (script) GenerateConfig() error {
|
|||||||
Email: client.Email,
|
Email: client.Email,
|
||||||
PublicKey: client.Keys.PublicKey,
|
PublicKey: client.Keys.PublicKey,
|
||||||
PresharedKey: client.Keys.PresharedKey,
|
PresharedKey: client.Keys.PresharedKey,
|
||||||
AllowedIPS: client.AllowedIpsStr,
|
AllowedIPS: client.IpAllocationStr,
|
||||||
Endpoint: client.Endpoint,
|
Endpoint: client.Endpoint,
|
||||||
CreateUser: client.CreateUser,
|
CreateUser: client.CreateUser,
|
||||||
Enabled: cast.ToBool(client.Enabled),
|
Enabled: cast.ToBool(client.Enabled),
|
||||||
|
|||||||
Reference in New Issue
Block a user