mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
Https kcp
This commit is contained in:
@@ -561,7 +561,7 @@ func (s *Csv) GetInfoByHost(host string, r *http.Request) (h *Host, err error) {
|
||||
v.Location = "/"
|
||||
}
|
||||
if strings.Index(r.RequestURI, v.Location) == 0 {
|
||||
if h == nil || (len(v.Location) > len(h.Location)) {
|
||||
if h == nil || (len(v.Location) < len(h.Location)) {
|
||||
h = v
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user