Siva Mahadevan: 1 Allow 'site' directive to listen on a single IP address 1 files changed, 1 insertions(+), 1 deletions(-)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.sr.ht/~emersion/public-inbox/patches/52829/mbox | git am -3
Fixes bug introduced in commit cc1498ebd4d1e4794d521a95175cd5ae310b3b02. --- directives.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directives.go b/directives.go index 94258d3..cc71111 100644 --- a/directives.go +++ b/directives.go @@ -78,7 +78,7 @@ func parseSite(srv *Server, dir *scfg.Directive) error { host = u.Host port = "http" } - ln = srv.AddListener("tcp", ":"+port) + ln = srv.AddListener("tcp", host+":"+port) if u.Scheme == "http+insecure" { insecure = true } -- 2.45.1
Simon Ser <contact@emersion.fr> 8 months ago Ah. To be honest, this was by design: the host used for matching requests (the Host HTTP header field) is different from the host used for listening. Related feature request in tlstunnel: https://todo.sr.ht/~emersion/tlstunnel/26
Ah. To be honest, this was by design: the host used for matching requests (the Host HTTP header field) is different from the host used for listening. Related feature request in tlstunnel: https://todo.sr.ht/~emersion/tlstunnel/26