4 Commits

Author SHA1 Message Date
coward
c7a56b1dde :bug:修复一个牛逼的bug
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-22 11:43:23 +08:00
coward
37446ea958 🎨 2024-08-22 11:14:28 +08:00
coward
1b28b196a0 :art:打印日志看输出
Some checks failed
continuous-integration/drone/tag Build was killed
2024-08-21 16:39:30 +08:00
coward
1a5ab341ab 🐛
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-21 14:33:50 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -89,5 +89,9 @@ func (DashboardApi) ConnectionList(c *gin.Context) {
})
}
if len(connections) <= 0 {
connections = []vo.DataTraffic{}
}
response.R(c).OkWithData(connections)
}

View File

@@ -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),