mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
pkg: address managed DNS mode review feedback
This commit is contained in:
1 parent
47dd64b901
commit
f0b60f3efa
10 files changed
+86
-24
No files matched your search
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user