mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 19:42:42 +08:00
Remove unused
This commit is contained in:
parent
b8009d61b2
commit
5a2cebebd1
|
@ -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) {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
package wireguard
|
||||
|
||||
const tunPacketOffset = 4
|
|
@ -1,5 +0,0 @@
|
|||
//go:build !darwin
|
||||
|
||||
package wireguard
|
||||
|
||||
const tunPacketOffset = 0
|
Loading…
Reference in New Issue
Block a user