TUN inbound: Rename to autoSystemWfpBlockLeak and autoSystemDnsToGateway

autoSystemWFP becomes autoSystemWfpBlockLeak, saying that the WFP filters
block leaks, and autoSystemDNS becomes autoSystemDnsToGateway, saying
where it points the system DNS, so that pointing the system DNS at the
gateway on Windows later would fit the same name. Their config fields
keep their numbers; neither was released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
patterniha
2026-09-30 02:31:00 +03:30
co-authored by Claude Opus 5.5
parent 63de6135cb
commit 4ec4fb8aab
8 changed files with 40 additions and 34 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ var verifyDNSRouting = func(ctx context.Context, inboundTag, source, address str
// resolution is left to the OS, which is the documented default. Errors are
// returned to the caller, which treats them as non-fatal.
func (t *LinuxTun) ConfigureSystemDNS(ctx context.Context, inboundTag string) error {
if !t.options.AutoSystemDns {
if !t.options.AutoSystemDnsToGateway {
return nil
}
if t.systemDNSSet {