mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 09:15:37 -05:00
feat: refine handle logic
This commit is contained in:
@@ -29,8 +29,8 @@ func (t *TUN) CreateStack(linkedEndpoint stack.LinkEndpoint) (*stack.Stack, erro
|
||||
nicID := tcpip.NICID(s.UniqueID())
|
||||
|
||||
opts := []StackOption{
|
||||
HandleTCP(handleTCP),
|
||||
HandleUDP(handleUDP),
|
||||
SetTCPHandler(t.ctx, t.dispatcher, t.policyManager, t.config),
|
||||
SetUDPHandler(t.ctx, t.dispatcher, t.policyManager, t.config),
|
||||
|
||||
CreateNIC(nicID, linkedEndpoint),
|
||||
AddProtocolAddress(nicID, t.config.Ips),
|
||||
|
||||
Reference in New Issue
Block a user