Skip to content

Commit

Permalink
Patch out listening on 443 to address #14 (#16)
Browse files Browse the repository at this point in the history
Fixed setting custom SSL port
  • Loading branch information
BatmanAMA authored and buger committed Nov 22, 2017
1 parent 88e7635 commit 5d75fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func main() {
}

if config.HttpServerOptions.UseSSL {
log.Info("[MAIN] Broker Listening on :443")
err := http.ListenAndServeTLS(":443", config.HttpServerOptions.CertFile, config.HttpServerOptions.KeyFile, p)
log.Info("[MAIN] Broker Listening on SSL:", listenPort)
err := http.ListenAndServeTLS(":"+listenPort, config.HttpServerOptions.CertFile, config.HttpServerOptions.KeyFile, p)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
Expand Down

0 comments on commit 5d75fb3

Please sign in to comment.