1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 06:25:32 -05:00

chore: rename DeviceCreator

This commit is contained in:
AkinoKaede
2023-05-28 14:17:40 +08:00
committed by Shelikhoo
parent a3728b6abc
commit 4276ee9464
3 changed files with 5 additions and 4 deletions

View File

@@ -9,6 +9,8 @@ import (
"gvisor.dev/gvisor/pkg/tcpip/transport/udp"
)
type StackOption func(*stack.Stack) error
func CreateStack(_ stack.LinkEndpoint) (*stack.Stack, error) {
s := stack.New(stack.Options{
NetworkProtocols: []stack.NetworkProtocolFactory{