1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-13 11:45:23 -05:00

fix tun app lints

This commit is contained in:
Shelikhoo
2023-10-23 01:44:36 +01:00
parent e87af12bf8
commit 0ca849637d
10 changed files with 39 additions and 27 deletions

View File

@@ -1,12 +1,13 @@
package tun
import (
"github.com/v2fly/v2ray-core/v5/app/router/routercommon"
"gvisor.dev/gvisor/pkg/tcpip"
"gvisor.dev/gvisor/pkg/tcpip/network/ipv4"
"gvisor.dev/gvisor/pkg/tcpip/network/ipv6"
"gvisor.dev/gvisor/pkg/tcpip/stack"
"gvisor.dev/gvisor/pkg/tcpip/transport/tcp"
"github.com/v2fly/v2ray-core/v5/app/router/routercommon"
)
func CreateNIC(id tcpip.NICID, linkEndpoint stack.LinkEndpoint) StackOption {