Skip to content

Commit 833424c

Browse files
ranbelKianNH
authored andcommitted
[ZT] Update minimum MTU (#17522)
* Update minimum MTU * move content to footnote * Rebase and fix multiple footnote blocks --------- Co-authored-by: Kian Newman-Hazel <[email protected]>
1 parent 21a413b commit 833424c

File tree

5 files changed

+29
-17
lines changed

5 files changed

+29
-17
lines changed

src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
| **OS type** | 64-bit only |
1010
| **HD space** | 75 MB |
1111
| **Memory** | 35 MB |
12-
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
12+
| **Network interface type** | WIFI or LAN |
13+
| **Minimum MTU** | 1360 bytes[^1] |
14+
15+
[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.

src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
| **OS type** | 64-bit only |
1010
| **HD space** | 75 MB |
1111
| **Memory** | 35 MB |
12-
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
12+
| **Network interface type** | WIFI or LAN |
13+
| **Minimum MTU** | 1360 bytes[^1]|
14+
15+
[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.

src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
| **.NET Framework version** | 4.7.2 or later |
1111
| **HD space** | 184 MB |
1212
| **Memory** | 3 MB |
13-
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
13+
| **Network interface type** | WIFI or LAN |
14+
| **Minimum MTU** | 1360 bytes[^1]|
15+
16+
[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.

src/scripts/footnotes.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
import { addTooltip } from "~/util/tippy";
22

3-
const footnotes = document.querySelector("section.footnotes");
3+
const footnotes = document.querySelectorAll("section.footnotes");
44

55
if (footnotes) {
6-
const notes = footnotes.querySelectorAll("li");
6+
for (const section of footnotes) {
7+
const notes = section.querySelectorAll("li");
78

8-
for (const note of notes) {
9-
const content = note.querySelector("p") as HTMLParagraphElement;
9+
for (const note of notes) {
10+
const content = note.querySelector("p") as HTMLParagraphElement;
1011

11-
const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
12-
`a[id^='${note.id.replace("fn", "fnref")}']`,
13-
);
12+
const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
13+
`a[id^='${note.id.replace("fn", "fnref")}']`,
14+
);
1415

15-
for (const fnref of fnrefs) {
16-
addTooltip(fnref, content.innerHTML);
16+
for (const fnref of fnrefs) {
17+
addTooltip(fnref, content.innerHTML);
1718

18-
fnref.classList.add("footnote");
19+
fnref.classList.add("footnote");
1920

20-
fnref.setAttribute("tabindex", "0");
21-
fnref.removeAttribute("href");
21+
fnref.setAttribute("tabindex", "0");
22+
fnref.removeAttribute("href");
23+
}
2224
}
23-
}
2425

25-
footnotes.remove();
26+
section.remove();
27+
}
2628
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "astro/tsconfigs/strict",
33
"compilerOptions": {
44
"baseUrl": ".",
5+
"target": "ESNext",
56
"paths": {
67
"~/*": ["src/*"]
78
}

0 commit comments

Comments
 (0)