app/reverse/portal.go: Fix HandleConnection() returns immediately (from DispatchLink() with configured domain)

Fixes https://github.com/XTLS/Xray-core/issues/5088
pull/5100/head
RPRX 2025-09-07 02:15:52 +00:00 committed by GitHub
parent 6ec0291d4e
commit 4b0ee28f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ func (p *Portal) HandleConnection(ctx context.Context, link *transport.Link) err
}
p.picker.AddWorker(worker)
if _, ok := link.Reader.(*pipe.Reader); !ok {
<-ctx.Done() // from DispatchLink()
}
return nil
}