youugiuhiuh
2026-09-27 20:07:53 +00:00
committed by GitHub
parent 7a018833ec
commit 47a2c2ffdc
10 changed files with 1023 additions and 3 deletions
+10
View File
@@ -165,6 +165,16 @@ func (t *Handler) Start() error {
return err
}
// Platform-specific system DNS takeover, where the platform implements it.
// Non-fatal: a failure leaves DNS management with the OS.
if c, ok := tunInterface.(interface {
ConfigureSystemDNS(context.Context, string) error
}); ok {
if err := c.ConfigureSystemDNS(t.ctx, t.tag); err != nil {
errors.LogInfoInner(t.ctx, err, "[tun] system DNS not configured")
}
}
t.stack = tunStack
t.tun = tunInterface