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)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func (script) GenerateConfig() error {
|
||||
Email: client.Email,
|
||||
PublicKey: client.Keys.PublicKey,
|
||||
PresharedKey: client.Keys.PresharedKey,
|
||||
AllowedIPS: client.AllowedIpsStr,
|
||||
AllowedIPS: client.IpAllocationStr,
|
||||
Endpoint: client.Endpoint,
|
||||
CreateUser: client.CreateUser,
|
||||
Enabled: cast.ToBool(client.Enabled),
|
||||
|
||||
Reference in New Issue
Block a user