flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit d8aeb34b761d677665334114fb596640d0d5aa58
parent ccb73d588c9009221f84866d6c6963a19d0e8c87
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat,  9 Jan 2021 18:19:05 -0800

fix

Diffstat:
Mgemini.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gemini.go b/gemini.go @@ -81,7 +81,8 @@ func gmiIndex(w *gmi.ResponseWriter, r *gmi.Request) { func gmiPage(w *gmi.ResponseWriter, r *gmi.Request) { logGemini(r) // TODO move into wrapper var userName string - custom := domains[r.Host] + host, _, _ := net.SplitHostPort(r.Host) + custom := domains[host] if custom != "" { userName = custom } else {