10 Commits
Author SHA1 Message Date
wonfen 6ec35c8195 fix(macos): restore system DNS reliably after TUN
Detached tasks spawned on every config generation set and restored the
placeholder DNS without ordering, so a set could back up the placeholder
itself and a later restore reported success while leaving it in place.

Reconcile from the applied config under the lifecycle lock, and restore
whenever the core stops. Keep one backup per network service, never back
up the placeholder, and restore only while the service still holds it.
Scripts verify every read and write and are killed after 5 s.

Refs #8070, #8168
2026-10-06 12:47:08 +08:00
wonfen 807f9a206d chore: trim excessive comments 2026-08-19 07:27:43 +08:00
zhuo-githubzhuocanhe <zhuocanhe>Tunglies
aa72fa9a42 fix: add DNS hijacking fix for macOS wired network(#5728)
* [bugfix][issues-2701]mac有线网络下dns劫持失败

* [bugfix][issues-2701]mac有线网络下dns劫持失败。删除弃用代码,删除打印端口日志

* fix(changelog): add DNS hijacking fix for macOS wired network

---------

Co-authored-by: zhuocanhe <zhuocanhe>
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
2025-12-19 17:05:47 +08:00
huzibaca 0f9ed02bf0 chore: hide DNS cache file 2024-11-22 02:42:55 +08:00
huzibaca 49d3644d6a chore: format 2024-11-19 13:28:17 +08:00
wonfen ee9d12d933 feat: improve set dns logic 2024-11-19 11:38:23 +08:00
huzibaca d22097ee33 chore: optimised the logic of dns processing 2024-10-28 13:09:55 +08:00
huzibaca 7de63cea5c Revert "chore: update resource"
This reverts commit da907d0eea.
2024-10-27 05:10:26 +08:00
huzibaca da907d0eea chore: update resource 2024-10-27 04:46:24 +08:00
huzibaca a919f493d6 fix:public DNS not set in macos, tun+fake-ip 2024-10-26 08:55:00 +08:00