better language and show wg config on device save (#3065)

* better language and show wg config on device save

* chore: fix

---------

Co-authored-by: waterplea <alexander@inkin.ru>
This commit is contained in:
Matt Hill
2025-12-02 14:42:14 -07:00
committed by GitHub
parent a9c9917f1a
commit db2fab245e
7 changed files with 48 additions and 31 deletions

View File

@@ -354,7 +354,9 @@ export class InterfaceService {
if (ssl) {
type = `${type} (SSL)`
bullets = [
this.i18n.transform('Only useful for clients that require SSL'),
this.i18n.transform(
'Not recommended in most cases. Only needed for apps that enforce HTTPS',
),
rootCaRequired,
...bullets,
]
@@ -409,13 +411,13 @@ export class InterfaceService {
bullets = [
this.i18n.transform('Can be used for clearnet access'),
this.i18n.transform(
'Not recommended in most cases. Public domains are preferred',
'Not recommended in most cases. Using a public domain is more common and preferred',
),
rootCaRequired,
]
if (!info.gateway.public) {
bullets.push(
`${portForwarding} "${gatewayName}": ${port} -> ${gateway?.subnets.find(s => s.isIpv4())?.address}:${port}`,
`${portForwarding} "${gatewayName}": ${port} -> ${port}`,
)
}
} else {
@@ -452,7 +454,7 @@ export class InterfaceService {
if (!info.gateway.public) {
bullets.push(
`${portForwarding} "${gatewayName}": ${port} -> ${gateway?.subnets.find(s => s.isIpv4())?.address}:${port === 443 ? 5443 : port}`,
`${portForwarding} "${gatewayName}": ${port} -> ${port === 443 ? 5443 : port}`,
)
}
@@ -463,7 +465,10 @@ export class InterfaceService {
} else {
bullets = [
this.i18n.transform(
'Can be used for personal access via the public Internet. VPN is more private and secure',
'Can be used for personal access via the public Internet, but a VPN is more private and secure',
),
this.i18n.transform(
`Not good for public access, since the certificate is signed by your Server's Root CA`,
),
rootCaRequired,
...bullets,