mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00: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) {
|
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) {
|
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 a new issue