tun: Fix inconsistent DNS mode behavior without auto_route

This commit is contained in:
世界
2026-10-09 12:36:03 +08:00
parent 80c1171410
commit 194ebd18b6
4 changed files with 9 additions and 5 deletions
+3 -1
View File
@@ -255,7 +255,9 @@ How DNS is handled on the TUN interface.
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `disabled` | Do not configure native DNS and do not hijack DNS traffic. |
| `native` | Set the platform's native interface DNS where possible: per-interface DNS on Windows and Apple platforms, and `systemd-resolved` interface DNS on Linux. |
| `hijack` | Same as `native`, with additional port 53 hijacking described below. Used by default. |
| `hijack` | Same as `native`, with additional port 53 hijacking described below. |
`hijack` is used by default when [`auto_route`](#auto_route) is enabled, otherwise `disabled` is used by default.
`hijack` adds the following on top of `native`: