mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +08:00
16 lines
237 B
Go
16 lines
237 B
Go
package tun
|
|
|
|
const (
|
|
offset = 0
|
|
|
|
defaultMTU = 0 /* auto */
|
|
)
|
|
|
|
func (t *TUN) Read(packet []byte) (int, error) {
|
|
return t.nt.Read(packet, offset)
|
|
}
|
|
|
|
func (t *TUN) Write(packet []byte) (int, error) {
|
|
return t.nt.Write(packet, offset)
|
|
}
|