mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-16 19:05:13 +03:00
fix(sponsor): fetch sponsor data from raw.githubusercontent.com
The server-side fetch used sponsors.sanaei.dev, a hostname unique to 3x-ui. Without ECH it travels in plaintext SNI, so an on-path observer could tag a server as running the panel from that one connection. raw.githubusercontent.com is shared by countless tools and reveals nothing. The path stays inside TLS. The data source is unchanged: the same MHSanaei/sponsors repo. Refs #6824
This commit is contained in:
@@ -60,8 +60,8 @@ type sponsorLogo struct {
|
||||
}
|
||||
|
||||
var (
|
||||
sponsorsURL = "https://sponsors.sanaei.dev/3X/sponsors.json"
|
||||
sponsorLogoBase = "https://sponsors.sanaei.dev/3X/logos/"
|
||||
sponsorsURL = "https://raw.githubusercontent.com/MHSanaei/sponsors/refs/heads/main/3X/sponsors.json"
|
||||
sponsorLogoBase = "https://raw.githubusercontent.com/MHSanaei/sponsors/refs/heads/main/3X/logos/"
|
||||
sponsorNow = time.Now
|
||||
|
||||
// The panel proxies logos from sponsorLogoBase: CSP stays 'self' and no third party sees admin IPs.
|
||||
|
||||
Reference in New Issue
Block a user