mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-23 01:32:19 +00:00
Don't use vars
This commit is contained in:
parent
7831238375
commit
3bf27fb0b1
@ -50,7 +50,7 @@ func viewerGetHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
// Get stream ID from URL, or from domain name
|
// Get stream ID from URL, or from domain name
|
||||||
path := r.URL.Path[1:]
|
path := r.URL.Path[1:]
|
||||||
if cfg.OneStreamPerDomain {
|
if cfg.OneStreamPerDomain {
|
||||||
var host = r.Host
|
host := r.Host
|
||||||
if strings.Contains(host, ":") {
|
if strings.Contains(host, ":") {
|
||||||
realHost, _, err := net.SplitHostPort(r.Host)
|
realHost, _, err := net.SplitHostPort(r.Host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user