mirror of https://github.com/XTLS/Xray-core
app/reverse/portal.go: Fix HandleConnection() returns immediately (from DispatchLink() with configured domain)
Fixes https://github.com/XTLS/Xray-core/issues/5088pull/5100/head
parent
6ec0291d4e
commit
4b0ee28f1c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue