1
0

A func Site was added to return a schema://host string.

This commit is contained in:
Alexander Andreev 2024-05-10 00:09:35 +04:00
parent ec6c1df474
commit 7c34a3a632
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -19,6 +19,13 @@ func MainSite(host string) string {
return "https://arav.su" return "https://arav.su"
} }
func Site(host string) string {
if strings.Contains(host, ".su") {
return "https://radio.arav.su"
}
return "http://" + host
}
// ToClientTimezone converts given time to timezone set in a // ToClientTimezone converts given time to timezone set in a
// X-Client-Timezone header. If this header is not set, then // X-Client-Timezone header. If this header is not set, then
// converts to UTC. // converts to UTC.