mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 21:15:46 -05:00
feat: add udp handler
This commit is contained in:
@@ -30,6 +30,7 @@ func (t *TUN) CreateStack(linkedEndpoint stack.LinkEndpoint) (*stack.Stack, erro
|
||||
|
||||
opts := []StackOption{
|
||||
SetTCPHandler(t.ctx, t.dispatcher, t.policyManager, t.config),
|
||||
SetUDPHandler(t.ctx, t.dispatcher, t.policyManager, t.config),
|
||||
|
||||
CreateNIC(nicID, linkedEndpoint),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user