Remove unused

This commit is contained in:
世界
2022-10-10 14:23:34 +08:00
parent 51e66dd624
commit 9a6072a048
3 changed files with 1 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ func (w *SystemDevice) File() *os.File {
}
func (w *SystemDevice) Read(bytes []byte, index int) (int, error) {
return w.device.Read(bytes[index-tunPacketOffset:])
return w.device.Read(bytes[index-tun.PacketOffset:])
}
func (w *SystemDevice) Write(bytes []byte, index int) (int, error) {