update help
This commit is contained in:
@@ -176,11 +176,12 @@ func (c Config) basicAuth(w http.ResponseWriter, r *http.Request) bool {
|
|||||||
func (c Config) endpoint(r *http.Request) Endpoint {
|
func (c Config) endpoint(r *http.Request) Endpoint {
|
||||||
key := c.key(r)
|
key := c.key(r)
|
||||||
domain := strings.TrimPrefix(r.Host, key)
|
domain := strings.TrimPrefix(r.Host, key)
|
||||||
|
log.Printf("lookup %s.%s", domain, key)
|
||||||
m, ok := c.Domains[domain]
|
m, ok := c.Domains[domain]
|
||||||
if !ok {
|
if !ok {
|
||||||
return Endpoint{}
|
return Endpoint{}
|
||||||
}
|
}
|
||||||
return m[c.key(r)]
|
return m[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
type redirPurge struct {
|
type redirPurge struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user