mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-26 02:21:27 +00:00
Fix deprecated StackNew() function
This commit is contained in:
parent
46d6b9f57a
commit
31a8fae764
|
@ -102,7 +102,7 @@ func (o *Outbound) Process(ctx context.Context, link *transport.Link, dialer int
|
||||||
if err != nil && err != buf.ErrNotTimeoutReader && err != buf.ErrReadTimeout {
|
if err != nil && err != buf.ErrNotTimeoutReader && err != buf.ErrReadTimeout {
|
||||||
return newError("read payload").Base(err)
|
return newError("read payload").Base(err)
|
||||||
}
|
}
|
||||||
_payload := B.StackNew()
|
_payload := B.New()
|
||||||
payload := C.Dup(_payload)
|
payload := C.Dup(_payload)
|
||||||
defer payload.Release()
|
defer payload.Release()
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in a new issue