@@ -181,28 +181,30 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo
181181 logger : logger ,
182182 inboundOptions : options .InboundOptions ,
183183 tunOptions : tun.Options {
184- Name : options .InterfaceName ,
185- MTU : tunMTU ,
186- Inet4Address : inet4Address ,
187- Inet6Address : inet6Address ,
188- AutoRoute : options .AutoRoute ,
189- IPRoute2TableIndex : tableIndex ,
190- IPRoute2RuleIndex : ruleIndex ,
191- AutoRedirectInputMark : inputMark ,
192- AutoRedirectOutputMark : outputMark ,
193- StrictRoute : options .StrictRoute ,
194- IncludeInterface : options .IncludeInterface ,
195- ExcludeInterface : options .ExcludeInterface ,
196- Inet4RouteAddress : inet4RouteAddress ,
197- Inet6RouteAddress : inet6RouteAddress ,
198- Inet4RouteExcludeAddress : inet4RouteExcludeAddress ,
199- Inet6RouteExcludeAddress : inet6RouteExcludeAddress ,
200- IncludeUID : includeUID ,
201- ExcludeUID : excludeUID ,
202- IncludeAndroidUser : options .IncludeAndroidUser ,
203- IncludePackage : options .IncludePackage ,
204- ExcludePackage : options .ExcludePackage ,
205- InterfaceMonitor : networkManager .InterfaceMonitor (),
184+ Name : options .InterfaceName ,
185+ MTU : tunMTU ,
186+ Inet4Address : inet4Address ,
187+ Inet6Address : inet6Address ,
188+ AutoRoute : options .AutoRoute ,
189+ IPRoute2TableIndex : tableIndex ,
190+ IPRoute2RuleIndex : ruleIndex ,
191+ AutoRedirectInputMark : inputMark ,
192+ AutoRedirectOutputMark : outputMark ,
193+ Inet4LocalRedirectAddress : common .Filter (options .LocalRedirectAddress , netip .Addr .Is4 ),
194+ Inet6LocalRedirectAddress : common .Filter (options .LocalRedirectAddress , netip .Addr .Is6 ),
195+ StrictRoute : options .StrictRoute ,
196+ IncludeInterface : options .IncludeInterface ,
197+ ExcludeInterface : options .ExcludeInterface ,
198+ Inet4RouteAddress : inet4RouteAddress ,
199+ Inet6RouteAddress : inet6RouteAddress ,
200+ Inet4RouteExcludeAddress : inet4RouteExcludeAddress ,
201+ Inet6RouteExcludeAddress : inet6RouteExcludeAddress ,
202+ IncludeUID : includeUID ,
203+ ExcludeUID : excludeUID ,
204+ IncludeAndroidUser : options .IncludeAndroidUser ,
205+ IncludePackage : options .IncludePackage ,
206+ ExcludePackage : options .ExcludePackage ,
207+ InterfaceMonitor : networkManager .InterfaceMonitor (),
206208 },
207209 udpTimeout : udpTimeout ,
208210 stack : options .Stack ,
0 commit comments