internal/router: report error if DNS shield is enabled in UniFi OS

This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2024-01-22 23:13:09 +07:00
1 parent 251255c746
commit 28984090e5
2 files changed
+23

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ func (u *Ubios) Install(config *service.Config) error {
if edgeos.ContentFilteringEnabled() {
return edgeos.ErrContentFilteringEnabled
}
// See comment in (*edgeos.EdgeOS).Install method.
if edgeos.DnsShieldEnabled() {
return edgeos.ErrDnsShieldEnabled
}
return nil
}