pkg: port managed DNS mode review fixes

This commit is contained in:
Dev Scribe
2026-09-01 11:03:13 +07:00
committed by Cuong Manh Le
parent f8f66609da
commit d2aa155ff3
9 changed files with 96 additions and 24 deletions
+3 -3
View File
@@ -1091,11 +1091,11 @@ func (p *prog) setDNS() {
}
// configuredInterceptMode resolves the service's effective intercept mode without
// mutating package state. Platform startup preflights use the same precedence as
// setDNS so they do not make adapter-DNS decisions from a different mode value.
// mutating package state. An explicit flag value, including "off", takes priority
// over the persisted config value.
func (p *prog) configuredInterceptMode() string {
im := interceptMode
if im == "" || im == "off" {
if im == "" {
im = p.cfg.Service.InterceptMode
}
return im