[PR #5527] [MERGED] Backport #5525 Fix the Let's Encrypt handler #17830

Closed
opened 2025-11-02 16:05:46 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5527
Author: @gregkare
Created: 12/11/2018
Status: Merged
Merged: 12/11/2018
Merged by: @techknowlogick

Base: release/v1.6Head: release/v1.6


📝 Commits (1)

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 cmd/web.go (+7 -1)

📄 Description

  • 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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5527 **Author:** [@gregkare](https://github.com/gregkare) **Created:** 12/11/2018 **Status:** ✅ Merged **Merged:** 12/11/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `release/v1.6` ← **Head:** `release/v1.6` --- ### 📝 Commits (1) - [`6bd18b6`](https://github.com/go-gitea/gitea/commit/6bd18b671daf9928fa93ab943edeab5895e641ec) Backported #5525 Fix the Let's Encrypt handler ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+7 -1) </details> ### 📄 Description * 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 16:05:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17830