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