Fix bind interface handling in desktop and sing-box (#9258)

* Fix desktop bind interface setting

* Fix sing-box bind interface config

* Update CoreConfigSingboxServiceTests.cs

---------

Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
This commit is contained in:
VinnyTheFemboy
2026-05-08 14:34:25 +03:00
committed by GitHub
parent 0f9bfeb275
commit 212071681d
3 changed files with 25 additions and 1 deletions
@@ -72,7 +72,7 @@ public partial class CoreConfigSingboxService
}
foreach (var outbound in _coreConfig.outbounds ?? [])
{
outbound.detour = ShouldBindNet(outbound) ? bindInterface : null;
outbound.bind_interface = ShouldBindNet(outbound) ? bindInterface : null;
}
}