Skip to content

Commit f28ca5e

Browse files
Fix inverted opposite DNS
1 parent fa21e2a commit f28ca5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/index.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use maud::{html, Markup, PreEscaped, DOCTYPE};
55
use crate::IndexPage;
66

77
pub fn index(page: &IndexPage) -> Markup {
8-
let preload_dns_ext = match page.ip {
9-
IpAddr::V4(_) => "v4",
10-
IpAddr::V6(_) => "v6",
8+
let raw_opposite_dns_ext = match page.ip {
9+
IpAddr::V4(_) => "v6",
10+
IpAddr::V6(_) => "v4",
1111
};
1212
let raw_opposite_endpoint = format!(
1313
"{}://{}.{}/raw",
14-
page.proto, preload_dns_ext, page.root_dns_name
14+
page.proto, raw_opposite_dns_ext, page.root_dns_name
1515
);
1616
let current_url = format!("{}://{}/", page.proto, page.root_dns_name);
1717
let canonical = format!("https://{}", page.root_dns_name);

0 commit comments

Comments
 (0)