mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-01 06:55:25 -05:00
fix tun app lints
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package device
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/v2fly/v2ray-core/v5/common/errors"
|
||||
|
||||
"gvisor.dev/gvisor/pkg/buffer"
|
||||
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
"io"
|
||||
)
|
||||
|
||||
func NewLinkWriterToWriter(writer stack.LinkWriter) io.Writer {
|
||||
@@ -16,7 +18,6 @@ type linkWriterToWriter struct {
|
||||
}
|
||||
|
||||
func (l linkWriterToWriter) Write(p []byte) (n int, err error) {
|
||||
|
||||
buffer := buffer.MakeWithData(p)
|
||||
packetBufferPtr := stack.NewPacketBuffer(stack.PacketBufferOptions{
|
||||
Payload: buffer,
|
||||
|
||||
Reference in New Issue
Block a user