mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +00:00
Added redirect to https warning
This commit is contained in:
parent
af2b9f2704
commit
9a1cefdc26
3 changed files with 27 additions and 3 deletions
|
@ -725,5 +725,6 @@
|
|||
"nameInvalid": "Name is required",
|
||||
"oneIdentifierRequired": "At least one identifier is required",
|
||||
"dnsCacheNumber": "DNS cache size must be a number",
|
||||
"errors": "Errors"
|
||||
"errors": "Errors",
|
||||
"redirectHttpsWarning": "If you have enabled \"Redirect to HTTPS automatically\" on your AdGuard Home server, you must select an HTTPS connection and use the HTTPS port of your server."
|
||||
}
|
|
@ -725,5 +725,6 @@
|
|||
"nameInvalid": "Se requiere un nombre",
|
||||
"oneIdentifierRequired": "Se require al menos un identificador",
|
||||
"dnsCacheNumber": "El tamaño de caché de DNS debe ser un número",
|
||||
"errors": "Errores"
|
||||
"errors": "Errores",
|
||||
"redirectHttpsWarning": "Si tienes activado \"Redireccionar a HTTPS automáticamente\" en tu servidor AdGuard Home, debes seleccionar una conexión HTTPS y utilizar el puerto de HTTPS de tu servidor."
|
||||
}
|
|
@ -127,6 +127,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
if (status == AuthStatus.manyAttepts) return AppLocalizations.of(context)!.tooManyAttempts;
|
||||
if (status == AuthStatus.socketException || status == AuthStatus.timeoutException) return AppLocalizations.of(context)!.cantReachServer;
|
||||
if (status == AuthStatus.serverError) return AppLocalizations.of(context)!.serverError;
|
||||
if (status == AuthStatus.handshakeException) return AppLocalizations.of(context)!.sslError;
|
||||
return AppLocalizations.of(context)!.unknownError;
|
||||
}
|
||||
|
||||
|
@ -429,6 +430,24 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
horizontal: 24,
|
||||
),
|
||||
),
|
||||
Card(
|
||||
margin: const EdgeInsets.only(
|
||||
top: 16, left: 24, right: 24
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.warning_rounded,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Flexible(child: Text(AppLocalizations.of(context)!.redirectHttpsWarning))
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
if (connectionType == ConnectionType.https) Card(
|
||||
margin: const EdgeInsets.only(
|
||||
top: 16, left: 24, right: 24
|
||||
|
@ -437,7 +456,10 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
padding: const EdgeInsets.all(16),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.info_rounded),
|
||||
Icon(
|
||||
Icons.info_rounded,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Flexible(child: Text(AppLocalizations.of(context)!.sslWarning))
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue