Skip to content

Commit

Permalink
Remove useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zorglube committed Mar 3, 2024
1 parent a4d832a commit 2aacc0f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2aacc0f

Please sign in to comment.