Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,11 @@ def _sni_rewrite_ip(self, host: str) -> str | None:
1. Explicit entry in config `hosts` map (exact or suffix match).
2. Built-in `_SNI_REWRITE_SUFFIXES` → mapped to config `google_ip`.
"""
# Force 'music.youtube.com' to use the relay regardless of youtube_via_relay setting.
h = host.lower().rstrip(".")
if h == "music.youtube.com" or h.endswith(".music.youtube.com"):
return None

ip = self._hosts_ip(host)
if ip:
return ip
Expand Down