Skip to content

Commit

Permalink
Clearly state listening address
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed Nov 15, 2022
1 parent 8ded38d commit 565f735
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,16 @@ func main() {
panic(err)
}

log.Printf("Rewriting URLs to %q", proxyURL)
log.Printf("Proxying %q", *osAuthURL)

{
if err := generateCertificate(proxyURL.Hostname()); err != nil {
log.Fatal(err)
}
log.Printf("Certificate correctly generated for %q", proxyURL.Hostname())
}

log.Printf("Starting the server on port %s...", proxyURL.Port())
log.Printf("Proxying to %q", *osAuthURL)
log.Printf("Listening on %q", proxyURL)

log.Fatal(
http.ListenAndServeTLS(":"+proxyURL.Port(), "cert.pem", "key.pem", p),
)
Expand Down

0 comments on commit 565f735

Please sign in to comment.