mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-08 02:00:43 +08:00
Chore: impl interface
This commit is contained in:
@@ -95,7 +95,7 @@ func (e *Endpoint) WritePacket(_ stack.RouteInfo, _ tcpip.NetworkProtocolNumber,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WritePackets writes packets back into io.ReadWriter.
|
// WritePackets writes packets back into io.ReadWriter.
|
||||||
func (e *Endpoint) WritePackets(_ stack.RouteInfo, pkts stack.PacketBufferList, _ tcpip.NetworkProtocolNumber) (int, tcpip.Error) {
|
func (e *Endpoint) WritePackets(pkts stack.PacketBufferList) (int, tcpip.Error) {
|
||||||
n := 0
|
n := 0
|
||||||
for pkt := pkts.Front(); pkt != nil; pkt = pkt.Next() {
|
for pkt := pkts.Front(); pkt != nil; pkt = pkt.Next() {
|
||||||
if err := e.writePacket(pkt); err != nil {
|
if err := e.writePacket(pkt); err != nil {
|
||||||
|
Reference in New Issue
Block a user