aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/hsts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/hsts.rs')
-rw-r--r--components/net/hsts.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/net/hsts.rs b/components/net/hsts.rs
index ebaf6e783bd..da57051790f 100644
--- a/components/net/hsts.rs
+++ b/components/net/hsts.rs
@@ -144,8 +144,8 @@ impl HstsList {
return;
}
- let upgrade_scheme = if pref!(network.enforce_tls.enabled) {
- if (!pref!(network.enforce_tls.localhost) &&
+ let upgrade_scheme = if pref!(network_enforce_tls_enabled) {
+ if (!pref!(network_enforce_tls_localhost) &&
match url.host() {
Some(Host::Domain(domain)) => {
domain.ends_with(".localhost") || domain == "localhost"
@@ -154,7 +154,7 @@ impl HstsList {
Some(Host::Ipv6(ipv6)) => ipv6.is_loopback(),
_ => false,
}) ||
- (!pref!(network.enforce_tls.onion) &&
+ (!pref!(network_enforce_tls_onion) &&
url.domain()
.is_some_and(|domain| domain.ends_with(".onion")))
{