Skip to content

Commit

Permalink
Let the broadcaster bind to the any interface
Browse files Browse the repository at this point in the history
This change allows the broadcaster to be accessed by the frontend, since
they are no longer colocated.
  • Loading branch information
lhchavez committed Mar 4, 2019
1 parent 20961ef commit bcaeb89
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/omegaup-broadcaster/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ func main() {
})
go b.Run()

eventsHost := ""
if ctx.Config.Broadcaster.Proxied {
eventsHost = "localhost"
}
var servers []*http.Server
var wg sync.WaitGroup
servers = append(
Expand All @@ -340,7 +336,7 @@ func main() {
&ctx.Config.Broadcaster.TLS,
eventsMux,
&wg,
fmt.Sprintf("%s:%d", eventsHost, ctx.Config.Broadcaster.EventsPort),
fmt.Sprintf(":%d", ctx.Config.Broadcaster.EventsPort),
ctx.Config.Broadcaster.Proxied,
),
)
Expand Down

0 comments on commit bcaeb89

Please sign in to comment.