This commit is contained in:
parent
42b4334d07
commit
8fb76cf20f
@ -129,11 +129,11 @@ func (clients) Download(c *gin.Context) {
|
|||||||
|
|
||||||
// 处理一下数据
|
// 处理一下数据
|
||||||
execData := template_data.ClientConfig{
|
execData := template_data.ClientConfig{
|
||||||
PrivateKey: data.Server.PrivateKey,
|
PrivateKey: keys.PrivateKey,
|
||||||
IpAllocation: data.IpAllocation,
|
IpAllocation: data.IpAllocation,
|
||||||
MTU: setting.MTU,
|
MTU: setting.MTU,
|
||||||
DNS: strings.Join(setting.DnsServer, ","),
|
DNS: strings.Join(setting.DnsServer, ","),
|
||||||
PublicKey: keys.PublicKey,
|
PublicKey: data.Server.PublicKey,
|
||||||
PresharedKey: keys.PresharedKey,
|
PresharedKey: keys.PresharedKey,
|
||||||
AllowedIPS: data.AllowedIps,
|
AllowedIPS: data.AllowedIps,
|
||||||
Endpoint: setting.EndpointAddress,
|
Endpoint: setting.EndpointAddress,
|
||||||
@ -201,10 +201,10 @@ func (clients) GenerateQrCode(c *gin.Context) {
|
|||||||
|
|
||||||
// 处理一下数据
|
// 处理一下数据
|
||||||
execData := template_data.ClientConfig{
|
execData := template_data.ClientConfig{
|
||||||
PrivateKey: data.Server.PrivateKey,
|
PrivateKey: keys.PrivateKey,
|
||||||
IpAllocation: data.IpAllocation,
|
IpAllocation: data.IpAllocation,
|
||||||
MTU: setting.MTU,
|
MTU: setting.MTU,
|
||||||
PublicKey: keys.PublicKey,
|
PublicKey: data.Server.PublicKey,
|
||||||
PresharedKey: keys.PresharedKey,
|
PresharedKey: keys.PresharedKey,
|
||||||
AllowedIPS: data.AllowedIps,
|
AllowedIPS: data.AllowedIps,
|
||||||
Endpoint: setting.EndpointAddress,
|
Endpoint: setting.EndpointAddress,
|
||||||
|
Loading…
Reference in New Issue
Block a user