🐛fix a bug
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
comma 2024-06-04 18:42:02 +08:00
parent 42b4334d07
commit 8fb76cf20f

View File

@ -129,11 +129,11 @@ func (clients) Download(c *gin.Context) {
// 处理一下数据
execData := template_data.ClientConfig{
PrivateKey: data.Server.PrivateKey,
PrivateKey: keys.PrivateKey,
IpAllocation: data.IpAllocation,
MTU: setting.MTU,
DNS: strings.Join(setting.DnsServer, ","),
PublicKey: keys.PublicKey,
PublicKey: data.Server.PublicKey,
PresharedKey: keys.PresharedKey,
AllowedIPS: data.AllowedIps,
Endpoint: setting.EndpointAddress,
@ -201,10 +201,10 @@ func (clients) GenerateQrCode(c *gin.Context) {
// 处理一下数据
execData := template_data.ClientConfig{
PrivateKey: data.Server.PrivateKey,
PrivateKey: keys.PrivateKey,
IpAllocation: data.IpAllocation,
MTU: setting.MTU,
PublicKey: keys.PublicKey,
PublicKey: data.Server.PublicKey,
PresharedKey: keys.PresharedKey,
AllowedIPS: data.AllowedIps,
Endpoint: setting.EndpointAddress,