+ client: add autofix explanation to the install form
This commit is contained in:
parent
254cab3a23
commit
d31e997041
|
@ -433,5 +433,8 @@
|
||||||
"example_rewrite_domain": "rewrite responses for this domain name only.",
|
"example_rewrite_domain": "rewrite responses for this domain name only.",
|
||||||
"example_rewrite_wildcard": "rewrite responses for all <0>example.org</0> subdomains.",
|
"example_rewrite_wildcard": "rewrite responses for all <0>example.org</0> subdomains.",
|
||||||
"disable_ipv6": "Disable IPv6",
|
"disable_ipv6": "Disable IPv6",
|
||||||
"disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped."
|
"disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped.",
|
||||||
|
"autofix_warning_text": "If you click \"Fix\", AdGuardHome will configure your system to use AdGuardHome DNS server.",
|
||||||
|
"autofix_warning_list": "It will perform these tasks: <0>Deactivate system DNSStubListener</0> <0>Set DNS server address to 127.0.0.1</0> <0>Replace symbolic link target of /etc/resolv.conf to /run/systemd/resolve/resolv.conf</0> <0>Stop DNSStubListener (reload systemd-resolved service)</0>",
|
||||||
|
"autofix_warning_result": "As a result all DNS requests from your system will be processed by AdGuardHome by default."
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,18 +213,31 @@ class Settings extends Component {
|
||||||
</div>
|
</div>
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
{dnsStatus &&
|
{dnsStatus &&
|
||||||
<div className="setup__error text-danger">
|
<Fragment>
|
||||||
{dnsStatus}
|
<div className="setup__error text-danger">
|
||||||
{isDnsFixAvailable &&
|
{dnsStatus}
|
||||||
<button
|
{isDnsFixAvailable &&
|
||||||
type="button"
|
<button
|
||||||
className="btn btn-secondary btn-sm ml-2"
|
type="button"
|
||||||
onClick={() => handleAutofix('dns', dnsIp, dnsPort)}
|
className="btn btn-secondary btn-sm ml-2"
|
||||||
>
|
onClick={() => handleAutofix('dns', dnsIp, dnsPort)}
|
||||||
<Trans>fix</Trans>
|
>
|
||||||
</button>
|
<Trans>fix</Trans>
|
||||||
}
|
</button>
|
||||||
</div>
|
}
|
||||||
|
</div>
|
||||||
|
<div className="text-muted mb-2">
|
||||||
|
<p className="mb-1">
|
||||||
|
<Trans>autofix_warning_text</Trans>
|
||||||
|
</p>
|
||||||
|
<Trans components={[<li key="0">text</li>]}>
|
||||||
|
autofix_warning_list
|
||||||
|
</Trans>
|
||||||
|
<p className="mb-1">
|
||||||
|
<Trans>autofix_warning_result</Trans>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</Fragment>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue