This commit is contained in:
@@ -78,6 +78,10 @@ func asyncWireguardConfigFile() {
|
||||
// 客户端数据
|
||||
var renderClients []template_data.Client
|
||||
for _, v := range serverEnt.Clients {
|
||||
// 如果不是确认后创建或者未启用就不写入到wireguard配置文件当中
|
||||
if *v.EnableAfterCreation != 1 || *v.Enabled != 1 {
|
||||
continue
|
||||
}
|
||||
var clientKey template_data.Keys
|
||||
_ = json.Unmarshal([]byte(v.Keys), &clientKey)
|
||||
var createUserName string
|
||||
|
Reference in New Issue
Block a user