mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-17 21:24:37 +03:00
Merge pull request #46 from mojienjoyment/python_testing
Force music.youtube.com to use the relay regardless of youtube_via_relay settings.
This commit is contained in:
@@ -680,6 +680,11 @@ class ProxyServer:
|
|||||||
1. Explicit entry in config `hosts` map (exact or suffix match).
|
1. Explicit entry in config `hosts` map (exact or suffix match).
|
||||||
2. Built-in `_SNI_REWRITE_SUFFIXES` → mapped to config `google_ip`.
|
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)
|
ip = self._hosts_ip(host)
|
||||||
if ip:
|
if ip:
|
||||||
return ip
|
return ip
|
||||||
|
|||||||
Reference in New Issue
Block a user