+ client: handle Disable IPv6 setting
This commit is contained in:
parent
7ac5760509
commit
b91753e746
@ -431,5 +431,7 @@
|
|||||||
"try_again": "Try again",
|
"try_again": "Try again",
|
||||||
"domain_desc": "Enter the domain name or wildcard you want to be rewritten.",
|
"domain_desc": "Enter the domain name or wildcard you want to be rewritten.",
|
||||||
"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_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped."
|
||||||
}
|
}
|
@ -65,6 +65,18 @@ let Form = ({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="col-12">
|
||||||
|
<div className="form__group form__group--settings">
|
||||||
|
<Field
|
||||||
|
name="disable_ipv6"
|
||||||
|
type="checkbox"
|
||||||
|
component={renderSelectField}
|
||||||
|
placeholder={t('disable_ipv6')}
|
||||||
|
disabled={processing}
|
||||||
|
subtitle={t('disable_ipv6_desc')}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="form__group form__group--settings mb-4">
|
<div className="form__group form__group--settings mb-4">
|
||||||
<label className="form__label form__label--with-desc">
|
<label className="form__label form__label--with-desc">
|
||||||
|
@ -16,6 +16,7 @@ const Config = ({ t, dnsConfig, setDnsConfig }) => {
|
|||||||
blocking_ipv4,
|
blocking_ipv4,
|
||||||
blocking_ipv6,
|
blocking_ipv6,
|
||||||
edns_cs_enabled,
|
edns_cs_enabled,
|
||||||
|
disable_ipv6,
|
||||||
processingSetConfig,
|
processingSetConfig,
|
||||||
} = dnsConfig;
|
} = dnsConfig;
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ const Config = ({ t, dnsConfig, setDnsConfig }) => {
|
|||||||
blocking_ipv4,
|
blocking_ipv4,
|
||||||
blocking_ipv6,
|
blocking_ipv6,
|
||||||
edns_cs_enabled,
|
edns_cs_enabled,
|
||||||
|
disable_ipv6,
|
||||||
}}
|
}}
|
||||||
onSubmit={handleFormSubmit}
|
onSubmit={handleFormSubmit}
|
||||||
processing={processingSetConfig}
|
processing={processingSetConfig}
|
||||||
|
@ -44,6 +44,7 @@ const dnsConfig = handleActions(
|
|||||||
blocking_ipv4: DEFAULT_BLOCKING_IPV4,
|
blocking_ipv4: DEFAULT_BLOCKING_IPV4,
|
||||||
blocking_ipv6: DEFAULT_BLOCKING_IPV6,
|
blocking_ipv6: DEFAULT_BLOCKING_IPV6,
|
||||||
edns_cs_enabled: false,
|
edns_cs_enabled: false,
|
||||||
|
disable_ipv6: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user