From 2aacc0feeb5ced2ec49c72b70f1eb164480e9e70 Mon Sep 17 00:00:00 2001 From: Zorglube <630192+zorglube@users.noreply.github.com> Date: Sun, 3 Mar 2024 18:58:36 +0100 Subject: [PATCH] Remove useless changes --- main.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.go b/main.go index 5a51446..5f13167 100644 --- a/main.go +++ b/main.go @@ -54,14 +54,14 @@ func setupSettings(adminPass string, confFile string) error { } type args struct { - Addr string `arg:"-l,--addr" help:"host:port of the HTTP server"` - RtmpAddr string `arg:"-r,--rtmp" help:"host:port of the RTMP server"` - StreamKey string `arg:"-k,--key" help:"Stream key, to protect your stream"` - AdminPass string `arg:"-a,--admin" help:"Set admin password. Overrides configuration in settings.json. This will not write the password to settings.json."` - ConfigFile string `arg:"-f,--config" help:"URI of the conf file"` - StaticDir string `arg:"-s,--static" help:"Directory to read static files from by default"` - EmotesDir string `arg:"-e,--emotes" help:"Directory to read emotes. By default it uses the executable directory"` - WriteStatic bool `arg:"--write-static" help:"write static files to the static dir"` + Addr string `arg:"-l,--addr" help:"host:port of the HTTP server"` + RtmpAddr string `arg:"-r,--rtmp" help:"host:port of the RTMP server"` + StreamKey string `arg:"-k,--key" help:"Stream key, to protect your stream"` + AdminPass string `arg:"-a,--admin" help:"Set admin password. Overrides configuration in settings.json. This will not write the password to settings.json."` + ConfigFile string `arg:"-f,--config" help:"URI of the conf file"` + StaticDir string `arg:"-s,--static" help:"Directory to read static files from by default"` + EmotesDir string `arg:"-e,--emotes" help:"Directory to read emotes. By default it uses the executable directory"` + WriteStatic bool `arg:"--write-static" help:"write static files to the static dir"` } func main() { @@ -155,8 +155,8 @@ func run(args args) { router.HandleFunc("/", wrapAuth(handleDefault)) httpServer := &http.Server{ - Addr: args.Addr, - Handler: router, + Addr: args.Addr, + Handler: router, } // RTMP Server