From 4c02326989a170bcf1d2c3aab1cf5c70adfed2ca Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Wed, 5 Aug 2026 02:13:43 -0400 Subject: [PATCH] Fix route_address_set duplicated IP sets causing route creation failure --- protocol/tun/inbound.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/protocol/tun/inbound.go b/protocol/tun/inbound.go index 6ec186b8..8937fbe3 100644 --- a/protocol/tun/inbound.go +++ b/protocol/tun/inbound.go @@ -301,7 +301,6 @@ func (t *Inbound) Start(stage adapter.StartStage) error { t.tunOptions.Name = tun.CalculateInterfaceName("") } if t.platformInterface == nil { - t.routeAddressSet = common.FlatMap(t.routeRuleSet, adapter.RuleSet.ExtractIPSet) for _, routeRuleSet := range t.routeRuleSet { ipSets := routeRuleSet.ExtractIPSet() if len(ipSets) == 0 { @@ -313,7 +312,6 @@ func (t *Inbound) Start(stage adapter.StartStage) error { t.routeRuleSetCallback = append(t.routeRuleSetCallback, routeRuleSet.RegisterCallback(t.updateRouteAddressSet)) } } - t.routeExcludeAddressSet = common.FlatMap(t.routeExcludeRuleSet, adapter.RuleSet.ExtractIPSet) for _, routeExcludeRuleSet := range t.routeExcludeRuleSet { ipSets := routeExcludeRuleSet.ExtractIPSet() if len(ipSets) == 0 {