~emersion/public-inbox

fix default port v1 PROPOSED

Jonathan Halmen: 1
 fix default port

 1 files changed, 1 insertions(+), 1 deletions(-)
Pushed, thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/15120/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] fix default port Export this patch

---
 directives.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/directives.go b/directives.go
index 1b3967b..e2a8372 100644
--- a/directives.go
+++ b/directives.go
@@ -42,7 +42,7 @@ func parseSite(srv *Server, dir *scfg.Directive) error {
		case "", "http", "http+insecure":
			if host, port, err = net.SplitHostPort(u.Host); err != nil {
				host = u.Host
				port = ":http"
				port = "http"
			}
			ln = srv.AddListener("tcp", ":"+port)
			if u.Scheme == "http+insecure" {
-- 
2.29.2
Pushed, thanks!