diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 1d432a3..372524c 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -141,7 +141,7 @@ AllowedIPs = ${client.address}/32`; createdAt: new Date(client.createdAt), updatedAt: new Date(client.updatedAt), allowedIPs: client.allowedIPs, - + downloadableConfig: 'privateKey' in client, persistentKeepalive: null, latestHandshakeAt: null, transferRx: null, @@ -198,7 +198,7 @@ AllowedIPs = ${client.address}/32`; return ` [Interface] -PrivateKey = ${client.privateKey} +PrivateKey = ${client.privateKey ? `${client.privateKey}` : 'REPLACE_ME'} Address = ${client.address}/24 ${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''} ${WG_MTU ? `MTU = ${WG_MTU}` : ''} diff --git a/src/www/css/app.css b/src/www/css/app.css index 4f4e21d..3232d33 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -1334,6 +1334,11 @@ video { transition-duration: 150ms; } +.disabled-link { + opacity: 0.25; + cursor: default; +} + .duration-200 { transition-duration: 200ms; } diff --git a/src/www/index.html b/src/www/index.html index 2edf3c7..fa5534d 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -214,9 +214,14 @@ -