Hysteria inbound: Support routing's vlessRoute as well (#6375)

https://github.com/XTLS/Xray-core/pull/6375#issuecomment-4795522284

---------

Co-authored-by: LjhAUMEM <llnu14702@gmail.com>
This commit is contained in:
seally
2026-06-27 17:04:58 +05:00
committed by GitHub
parent 345c76f9a8
commit 452b719504
3 changed files with 62 additions and 86 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func (h *httpHandler) AuthHTTP(w http.ResponseWriter, r *http.Request) bool {
var user *protocol.MemoryUser
var ok bool
if h.validator != nil && h.validator.GetCount() > 0 {
if h.validator != nil && h.validator.NotEmpty() {
user = h.validator.Get(auth)
} else if h.config.Auth != "" {
ok = auth == h.config.Auth