mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 06:38:44 +02:00
Ignore stream name case
This commit is contained in:
@ -79,7 +79,7 @@ func Serve(streams *messaging.Streams, authBackend auth.Backend, cfg *Options) {
|
||||
|
||||
if len(split) > 1 {
|
||||
// password was provided so it is a streamer
|
||||
name, password := split[0], split[1]
|
||||
name, password := strings.ToLower(split[0]), split[1]
|
||||
if authBackend != nil {
|
||||
// check password
|
||||
ok, username, err := authBackend.Login(name, password)
|
||||
@ -94,7 +94,7 @@ func Serve(streams *messaging.Streams, authBackend auth.Backend, cfg *Options) {
|
||||
go handleStreamer(s, streams, name)
|
||||
} else {
|
||||
// password was not provided so it is a viewer
|
||||
name := split[0]
|
||||
name := strings.ToLower(split[0])
|
||||
|
||||
// Send stream
|
||||
go handleViewer(s, streams, name)
|
||||
|
Reference in New Issue
Block a user