From ee16bf9e21f4fd225c91fb71d639a1cfe0b3c442 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 8 Jan 2021 22:41:26 +0100 Subject: [PATCH] Alias is not properly replaced --- stream/srt/srt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stream/srt/srt.go b/stream/srt/srt.go index e551459..09a69ae 100644 --- a/stream/srt/srt.go +++ b/stream/srt/srt.go @@ -82,11 +82,13 @@ func Serve(streams *messaging.Streams, authBackend auth.Backend, cfg *Options) { name, password := split[0], split[1] if authBackend != nil { // check password - if ok, name, err := authBackend.Login(name, password); !ok || err != nil { + ok, username, err := authBackend.Login(name, password) + if ok || err != nil { log.Printf("Failed to authenticate for stream %s", name) s.Close() continue } + name = username } go handleStreamer(s, streams, name)