:art:新增客户端状态字段
This commit is contained in:
@@ -66,6 +66,7 @@ func asyncWireguardConfigFile() {
|
||||
Table: globalSetting.Table,
|
||||
}
|
||||
|
||||
// 客户端数据
|
||||
var renderClients []template_data.Client
|
||||
for _, v := range serverEnt.Clients {
|
||||
var clientKey template_data.Keys
|
||||
@@ -77,6 +78,7 @@ func asyncWireguardConfigFile() {
|
||||
renderClients = append(renderClients, template_data.Client{
|
||||
ID: v.Id,
|
||||
Name: v.Name,
|
||||
Email: v.Email,
|
||||
PublicKey: clientKey.PublicKey,
|
||||
PresharedKey: clientKey.PrivateKey,
|
||||
AllowedIPS: v.AllowedIps,
|
||||
@@ -85,6 +87,7 @@ func asyncWireguardConfigFile() {
|
||||
CreatedAt: v.CreatedAt.String(),
|
||||
UpdatedAt: v.UpdatedAt.String(),
|
||||
CreateUser: createUserName,
|
||||
Enabled: v.Enabled,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user