Import json configurations with no PreShared-Key
This commit is contained in:
parent
b9f037fae1
commit
e9e8d47858
|
@ -110,8 +110,8 @@ PostDown = ${WG_POST_DOWN}
|
||||||
# Client: ${client.name} (${clientId})
|
# Client: ${client.name} (${clientId})
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = ${client.publicKey}
|
PublicKey = ${client.publicKey}
|
||||||
PresharedKey = ${client.preSharedKey}
|
${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
|
||||||
AllowedIPs = ${client.address}/32`;
|
}AllowedIPs = ${client.address}/32`;
|
||||||
}
|
}
|
||||||
|
|
||||||
debug('Config saving...');
|
debug('Config saving...');
|
||||||
|
@ -204,8 +204,8 @@ ${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = ${config.server.publicKey}
|
PublicKey = ${config.server.publicKey}
|
||||||
PresharedKey = ${client.preSharedKey}
|
${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
|
||||||
AllowedIPs = ${WG_ALLOWED_IPS}
|
}AllowedIPs = ${WG_ALLOWED_IPS}
|
||||||
PersistentKeepalive = ${WG_PERSISTENT_KEEPALIVE}
|
PersistentKeepalive = ${WG_PERSISTENT_KEEPALIVE}
|
||||||
Endpoint = ${WG_HOST}:${WG_PORT}`;
|
Endpoint = ${WG_HOST}:${WG_PORT}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue