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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user