mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
Remove unused
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user