Browse Source

change translations, fix generation

pull/1720/head
Bernd Storath 5 months ago
parent
commit
3c292dbb56
  1. 8
      src/i18n/locales/en.json
  2. 2
      src/server/utils/wgHelper.ts

8
src/i18n/locales/en.json

@ -96,7 +96,7 @@
"noPrivKey": "This client has no known private key. Cannot create Configuration.", "noPrivKey": "This client has no known private key. Cannot create Configuration.",
"showQR": "Show QR Code", "showQR": "Show QR Code",
"downloadConfig": "Download Configuration", "downloadConfig": "Download Configuration",
"allowedIpsDesc": "Which IPs will be routed through the VPN", "allowedIpsDesc": "Which IPs will be routed through the VPN (overrides global config)",
"serverAllowedIpsDesc": "Which IPs the server will route to the client", "serverAllowedIpsDesc": "Which IPs the server will route to the client",
"mtuDesc": "Sets the maximum transmission unit (packet size) for the VPN tunnel", "mtuDesc": "Sets the maximum transmission unit (packet size) for the VPN tunnel",
"persistentKeepaliveDesc": "Sets the interval (in seconds) for keep-alive packets. 0 disables it", "persistentKeepaliveDesc": "Sets the interval (in seconds) for keep-alive packets. 0 disables it",
@ -142,10 +142,10 @@
"connection": "Connection", "connection": "Connection",
"hostDesc": "Public hostname clients will connect to (invalidates config)", "hostDesc": "Public hostname clients will connect to (invalidates config)",
"portDesc": "Public UDP port clients will connect to (invalidates config)", "portDesc": "Public UDP port clients will connect to (invalidates config)",
"allowedIpsDesc": "Allowed IPs clients will use (invalidates config)", "allowedIpsDesc": "Allowed IPs clients will use (global config)",
"dnsDesc": "DNS server clients will use (global config)", "dnsDesc": "DNS server clients will use (global config)",
"mtuDesc": "MTU clients will use (invalidates config)", "mtuDesc": "MTU clients will use (only for new clients)",
"persistentKeepaliveDesc": "Interval in seconds to send keepalives to the server. 0 = disabled (invalidates config)" "persistentKeepaliveDesc": "Interval in seconds to send keepalives to the server. 0 = disabled (only for new clients)"
}, },
"interface": { "interface": {
"cidrSuccess": "Changed CIDR", "cidrSuccess": "Changed CIDR",

2
src/server/utils/wgHelper.ts

@ -65,7 +65,7 @@ ${hookLines.length ? `${hookLines.join('\n')}\n` : ''}
[Peer] [Peer]
PublicKey = ${wgInterface.publicKey} PublicKey = ${wgInterface.publicKey}
PresharedKey = ${client.preSharedKey} PresharedKey = ${client.preSharedKey}
AllowedIPs = ${client.allowedIps.join(', ')} AllowedIPs = ${(client.allowedIps ?? userConfig.defaultAllowedIps).join(', ')}
PersistentKeepalive = ${client.persistentKeepalive} PersistentKeepalive = ${client.persistentKeepalive}
Endpoint = ${userConfig.host}:${userConfig.port}`; Endpoint = ${userConfig.host}:${userConfig.port}`;
}, },

Loading…
Cancel
Save