From 383507bc0ce59038eabf7a8aac2dd6d42052fce0 Mon Sep 17 00:00:00 2001 From: Artem Baskal Date: Mon, 25 May 2020 19:41:04 +0300 Subject: [PATCH] + client: Allow `Fastest IP address` and `Parallel requests` to toggle each other: Merge pull request #619 in DNS/adguard-home from feature/1678 to master Close #1678 Squashed commit of the following: commit 9251ed0f1b58426104d1b9bdaa4b7af5f92be83e Author: ArtemBaskal Date: Thu May 21 18:25:18 2020 +0300 + client: Allow `Fastest IP address` and `Parallel requests` to toggle each other --- client/src/__locales/en.json | 4 +- client/src/components/Filters/Form.js | 24 +-- .../components/Settings/Dns/Upstream/Form.js | 169 +++++++++--------- .../components/Settings/Dns/Upstream/index.js | 26 ++- client/src/helpers/constants.js | 5 + client/src/helpers/form.js | 23 ++- 6 files changed, 137 insertions(+), 114 deletions(-) diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index 42a19b6e..73f5db5b 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -456,7 +456,7 @@ "disable_ipv6": "Disable IPv6", "disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped.", "fastest_addr": "Fastest IP address", - "fastest_addr_desc": "Query all DNS servers and return the fastest IP address among all responses", + "fastest_addr_desc": "Query all DNS servers and return the fastest IP address among all responses. This will slow down the DNS queries as we have to wait for responses from all DNS servers, but improve the overall connectivity.", "autofix_warning_text": "If you click \"Fix\", AdGuard Home will configure your system to use AdGuard Home DNS server.", "autofix_warning_list": "It will perform these tasks: <0>Deactivate system DNSStubListener <0>Set DNS server address to 127.0.0.1 <0>Replace symbolic link target of /etc/resolv.conf with /run/systemd/resolve/resolv.conf <0>Stop DNSStubListener (reload systemd-resolved service)", "autofix_warning_result": "As a result all DNS requests from your system will be processed by AdGuard Home by default.", @@ -490,4 +490,4 @@ "list_updated_plural": "{{count}} lists updated", "dnssec_enable": "Enable DNSSEC", "dnssec_enable_desc": "Set DNSSEC flag in the outcoming DNS queries and check the result (DNSSEC-enabled resolver is required)" -} \ No newline at end of file +} diff --git a/client/src/components/Filters/Form.js b/client/src/components/Filters/Form.js index 467dd0cb..7fc1f0a6 100644 --- a/client/src/components/Filters/Form.js +++ b/client/src/components/Filters/Form.js @@ -19,18 +19,18 @@ const Form = (props) => { return (
-
- data.trim()} - /> -
+
+ data.trim()} + /> +
[{ +const getInputFields = () => [{ // eslint-disable-next-line react/display-name getTitle: () =>