]> source.dussan.org Git - gitea.git/commit
Backported #5525 Fix the Let's Encrypt handler (#5527)
authorGreg Karékinian <greg@karekinian.com>
Tue, 11 Dec 2018 18:34:35 +0000 (19:34 +0100)
committertechknowlogick <hello@techknowlogick.com>
Tue, 11 Dec 2018 18:34:35 +0000 (13:34 -0500)
commit716c2918be9609471e499f5ed42a92078289cdc4
tree3a2b178f16a1e31aca408c2b179a04a25794e11c
parent60d7b614fedfc2d0ee091ba2941f97332b46a03a
Backported #5525 Fix the Let's Encrypt handler (#5527)

* Fix the Let's Encrypt handler by listening on a valid address

Also handle errors in the HTTP server go routine, return a fatal error
when something goes wrong.

Thanks to @gbl08ma for finding the actual bug

Here is an example of the error handling:

    2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to
    start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind:
    permission denied

Closes #5280

* Fix a typo
cmd/web.go