mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-28 18:42:47 +02:00
Replace dots by underscores in MapDomainToStream configuration
This commit is contained in:
@ -32,6 +32,7 @@ func viewerPostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
host = realHost
|
||||
host = strings.Replace(host, ".", "_", -1)
|
||||
}
|
||||
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
||||
path = streamID
|
||||
@ -81,6 +82,7 @@ func viewerGetHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
host = realHost
|
||||
host = strings.Replace(host, ".", "_", -1)
|
||||
}
|
||||
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
||||
if path == "about" {
|
||||
|
Reference in New Issue
Block a user