fix: more deterministic 'what'
This commit is contained in:
parent
7f331cb9c6
commit
2c0f4d876e
@ -7,7 +7,6 @@ import (
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"path"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
@ -45,7 +44,7 @@ func serveHostByIP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
what := path.Base(r.URL.Path)
|
||||
what := strings.TrimLeft(r.URL.Path, "/")
|
||||
|
||||
renderHost(w, r, what, host, cfg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user