mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-04 13:36:35 +02:00
pkg: port managed DNS mode review fixes
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user