Remove unused

This commit is contained in:
世界
2022-10-10 14:23:34 +08:00
parent b8009d61b2
commit 5a2cebebd1
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) {

View File

@@ -1,3 +0,0 @@
package wireguard
const tunPacketOffset = 4

View File

@@ -1,5 +0,0 @@
//go:build !darwin
package wireguard
const tunPacketOffset = 0