mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-04-05 17:03:33 +03:00
Merge in DNS/adguard-home from imp-cache-label to master
Squashed commit of the following:
commit 10f62aa078b5306525578e22476835ee2e7bac66
Merge: 08c2de0e fe8be370
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Tue Oct 4 16:30:43 2022 +0300
Merge branch 'master' into imp-cache-label
commit 08c2de0edbb1138b47d1a02d6630aa99b7ddcec9
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Tue Oct 4 16:19:36 2022 +0300
client: imp label
commit e66fbbe3cc6f929ff26fe3d7b8e14acc95f5c0ff
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Tue Oct 4 16:17:15 2022 +0300
client: imp upstream example
commit d073f71cc5df4ba5f7de7ed08ad1215f7a198539
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Tue Oct 4 15:44:58 2022 +0300
client: imp upstreams
commit b78d06db645a9f496bed699f4d4bf8c7396148f3
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Tue Oct 4 14:59:30 2022 +0300
client: imp cache size label
153 lines
5.6 KiB
JavaScript
153 lines
5.6 KiB
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Trans, withTranslation } from 'react-i18next';
|
|
import { COMMENT_LINE_DEFAULT_TOKEN } from '../../../../helpers/constants';
|
|
|
|
const Examples = (props) => (
|
|
<div className="list leading-loose">
|
|
<Trans>examples_title</Trans>:
|
|
<ol className="leading-loose">
|
|
<li>
|
|
<code>94.140.14.140</code>, <code>2a10:50c0::1:ff</code>: {props.t('example_upstream_regular')}
|
|
</li>
|
|
<li>
|
|
<code>94.140.14.140:53</code>, <code>[2a10:50c0::1:ff]:53</code>: {props.t('example_upstream_regular_port')}
|
|
</li>
|
|
<li>
|
|
<code>udp://unfiltered.adguard-dns.com</code>: <Trans>example_upstream_udp</Trans>
|
|
</li>
|
|
<li>
|
|
<code>tcp://94.140.14.140</code>, <code>tcp://[2a10:50c0::1:ff]</code>: <Trans>example_upstream_tcp</Trans>
|
|
</li>
|
|
<li>
|
|
<code>tcp://94.140.14.140:53</code>, <code>tcp://[2a10:50c0::1:ff]:53</code>: <Trans>example_upstream_tcp_port</Trans>
|
|
</li>
|
|
<li>
|
|
<code>tcp://unfiltered.adguard-dns.com</code>: <Trans>example_upstream_tcp_hostname</Trans>
|
|
</li>
|
|
<li>
|
|
<code>tls://unfiltered.adguard-dns.com</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://en.wikipedia.org/wiki/DNS_over_TLS"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
DNS-over-TLS
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_dot
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>https://unfiltered.adguard-dns.com/dns-query</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://en.wikipedia.org/wiki/DNS_over_HTTPS"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
DNS-over-HTTPS
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_doh
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>h3://unfiltered.adguard-dns.com/dns-query</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://en.wikipedia.org/wiki/HTTP/3"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
HTTP/3
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_doh3
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>quic://unfiltered.adguard-dns.com</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://datatracker.ietf.org/doc/html/rfc9250"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
DNS-over-QUIC
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_doq
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>sdns://...</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://dnscrypt.info/stamps/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
DNS Stamps
|
|
</a>,
|
|
<a
|
|
href="https://dnscrypt.info/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="1"
|
|
>
|
|
DNSCrypt
|
|
</a>,
|
|
<a
|
|
href="https://en.wikipedia.org/wiki/DNS_over_HTTPS"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="2"
|
|
>
|
|
DNS-over-HTTPS
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_sdns
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>[/example.local/]94.140.14.140</code>: <Trans
|
|
components={[
|
|
<a
|
|
href="https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#upstreams-for-domains"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
key="0"
|
|
>
|
|
Link
|
|
</a>,
|
|
]}
|
|
>
|
|
example_upstream_reserved
|
|
</Trans>
|
|
</li>
|
|
<li>
|
|
<code>{COMMENT_LINE_DEFAULT_TOKEN} comment</code>: <Trans>
|
|
example_upstream_comment
|
|
</Trans>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
);
|
|
|
|
Examples.propTypes = {
|
|
t: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default withTranslation()(Examples);
|