Skip to content

Commit daf0ac8

Browse files
author
root
committed
fix sni suffix categorization and remove local toolchain helpers
Keep ads/analytics domains in the core SNI rewrite list so the YouTube skip toggle only affects YouTube paths, and drop machine-specific .cargo cross-compile helpers that break CI portability. Made-with: Cursor
1 parent 5e812d3 commit daf0ac8

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

‎.cargo/config.toml‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.cargo/zig-cc-aarch64-apple-darwin.sh‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎src/proxy_server.rs‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const SNI_REWRITE_CORE_SUFFIXES: &[&str] = &[
3535
"gstatic.com",
3636
"googleusercontent.com",
3737
"googleapis.com",
38+
"doubleclick.net",
39+
"googlesyndication.com",
40+
"googleadservices.com",
41+
"google-analytics.com",
42+
"googletagmanager.com",
43+
"googletagservices.com",
3844
"ggpht.com",
3945
"blogspot.com",
4046
"blogger.com",
@@ -52,15 +58,6 @@ const SNI_REWRITE_YOUTUBE_SUFFIXES: &[&str] = &[
5258
// traverse Apps Script instead of the direct GFE tunnel.
5359
"gvt1.com",
5460
"gvt2.com",
55-
// Ad + analytics infra. All on GFE, all previously broken the
56-
// same way YouTube was: SNI-blocked on Iranian DPI, but reachable
57-
// via `google_ip` with SNI rewritten.
58-
"doubleclick.net",
59-
"googlesyndication.com",
60-
"googleadservices.com",
61-
"google-analytics.com",
62-
"googletagmanager.com",
63-
"googletagservices.com",
6461
// fonts.googleapis.com is technically covered by the googleapis.com
6562
// suffix above, but mirroring Python's explicit listing makes the
6663
// intent obvious at a glance.

0 commit comments

Comments
 (0)