🐛修复了bug

This commit is contained in:
2024-06-04 17:31:45 +08:00
parent d942de22de
commit 42b4334d07
2 changed files with 4 additions and 2 deletions

View File

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