//go:build with_gvisor package tun import ( "github.com/sagernet/sing/common/buf" "gvisor.dev/gvisor/pkg/tcpip/stack" ) type DirectDestination interface { WritePacket(buffer *buf.Buffer) error WritePacketBuffer(buffer *stack.PacketBuffer) error Close() error Timeout() bool }