1
0
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:
AkinoKaede
2023-05-28 15:16:37 +08:00
committed by Shelikhoo
parent 06ed6f98b3
commit 1cb3ab7f84
4 changed files with 135 additions and 25 deletions

View File

@@ -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),
}