mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Copy UDP GSO support from tailscale
This commit is contained in:
parent
06b4d4ecd1
commit
2b8115e83b
11 changed files with 1313 additions and 820 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
var _ GVisorTun = (*NativeTun)(nil)
|
||||
|
||||
func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, error) {
|
||||
if t.gsoEnabled {
|
||||
if t.vnetHdr {
|
||||
return fdbased.New(&fdbased.Options{
|
||||
FDs: []int{t.tunFd},
|
||||
MTU: t.options.MTU,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue