pkg: address managed DNS mode review feedback

This commit is contained in:
Dev Scribe authored and Cuong Manh Le committed 2026-08-24 15:18:01 +07:00
1 parent 47dd64b901
commit f0b60f3efa
10 files changed
+86 -24

No files matched your search

+3 -3
View File
@@ -1070,11 +1070,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