Skip to content

Commit

Permalink
fix: make --playurl option work for general paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Jan 25, 2024
1 parent 01f0788 commit 8b57bb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Make HTTP OPTIONS method work for all URLs
- Make --playurl work for general paths

## [1.1.1] - 2024-01-19

Expand Down
2 changes: 1 addition & 1 deletion cmd/livesim2/app/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *Server) Routes(ctx context.Context) error {
s.Router.MethodFunc("HEAD", "/static/*", s.embeddedStaticHandlerFunc)
s.Router.MethodFunc("GET", "/reqcount", s.reqCountHandlerFunc)
s.Router.MethodFunc("OPTIONS", "/*", s.optionsHandlerFunc)
s.Router.Handle("/player/*", createReversePlayerProxy("/player", "https://reference.dashif.org/xxx"))
s.Router.Handle("/player/*", createReversePlayerProxy("/player", s.Cfg.PlayURL))
s.Router.MethodFunc("GET", "/", s.indexHandlerFunc)
// LiveRouter is mounted at /livesim2
s.LiveRouter.MethodFunc("GET", "/*", s.livesimHandlerFunc)
Expand Down

0 comments on commit 8b57bb3

Please sign in to comment.