Skip to content

Commit

Permalink
fix: derp on https config
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrak committed Apr 3, 2024
1 parent 5e93442 commit 0ee0c1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion routes/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Discover(c *gin.Context) {
var host = c.Request.Host

var protocol = "https"
if config.Cfg.Https {
if !config.Cfg.Https {
protocol = "http"
}

Expand Down
2 changes: 1 addition & 1 deletion routes/lineup.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Lineup(c *gin.Context) {
var host = c.Request.Host

var protocol = "https"
if config.Cfg.Https {
if !config.Cfg.Https {
protocol = "http"
}

Expand Down
2 changes: 1 addition & 1 deletion routes/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Stream(c *gin.Context) {
var transcode = c.Query("transcode")

var protocol = "https"
if config.Cfg.Https {
if !config.Cfg.Https {
protocol = "http"
}

Expand Down

0 comments on commit 0ee0c1d

Please sign in to comment.