mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-04 16:25:21 -05:00
feat: set route config
This commit is contained in:
@@ -34,6 +34,7 @@ func (t *TUN) CreateStack(linkedEndpoint stack.LinkEndpoint) (*stack.Stack, erro
|
||||
|
||||
CreateNIC(nicID, linkedEndpoint),
|
||||
AddProtocolAddress(nicID, t.config.Ips),
|
||||
SetRouteTable(nicID, t.config.Routes),
|
||||
SetPromiscuousMode(nicID, t.config.EnablePromiscuousMode),
|
||||
SetSpoofing(nicID, t.config.EnableSpoofing),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user