Skip to content

Fix route_address_set duplicated IP sets causing route creation failure - #4356

Open
ofek wants to merge 210 commits into
SagerNet:testingfrom
ofek:fix-windows
Open

Fix route_address_set duplicated IP sets causing route creation failure#4356
ofek wants to merge 210 commits into
SagerNet:testingfrom
ofek:fix-windows

Conversation

@ofek

@ofek ofek commented Jul 27, 2026

Copy link
Copy Markdown

Fixes

TUN startup with route_address_set or route_exclude_address_set could add every rule-set prefix twice and fail on Windows with “The object already exists”; each prefix is now added once while rule-set updates continue to work. This restores the Windows behavior fixed for issue #3725 and released in 1.12.20 through 1.12.25 after the fix did not reach the newer release line. Existing configurations require no changes.

Verification

Confirmed that 1.13.14, 1.14.0-beta.2, and unmodified testing fail the same administrator-only Windows reproduction, while 1.12.21 and the equivalent literal route_address configuration start successfully. Built testing before and after the change with the Windows release tags; the patched binary started the same route_address_set reproduction in three clean cycles, installed one route each time, and left no adapter or route behind.

@nekohasekai
nekohasekai force-pushed the testing branch 20 times, most recently from b2dc1fe to 115dbec Compare August 3, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants