Fix deprecated StackNew() function

This commit is contained in:
wyx2685 2023-12-12 19:05:03 +08:00 committed by yuhan6665
parent 46d6b9f57a
commit 31a8fae764

View File

@ -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 {
return newError("read payload").Base(err)
}
_payload := B.StackNew()
_payload := B.New()
payload := C.Dup(_payload)
defer payload.Release()
for {