mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-06 07:52:55 +03:00
Pull request 2005: 6181-safebrowsing-default
Updates #6181. Squashed commit of the following: commit 3c4d0fe0750823c81548c2e81988ec27c718028f Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Sep 8 14:23:13 2023 +0300 home: fix default safe browsing, parental
This commit is contained in:
parent
62da8f4974
commit
5f696da9dc
4 changed files with 35 additions and 8 deletions
internal/home
|
@ -282,6 +282,12 @@ type statsConfig struct {
|
|||
Enabled bool `yaml:"enabled"`
|
||||
}
|
||||
|
||||
// Default block host constants.
|
||||
const (
|
||||
defaultSafeBrowsingBlockHost = "standard-block.dns.adguard.com"
|
||||
defaultParentalBlockHost = "family-block.dns.adguard.com"
|
||||
)
|
||||
|
||||
// config is the global configuration structure.
|
||||
//
|
||||
// TODO(a.garipov, e.burkov): This global is awful and must be removed.
|
||||
|
@ -389,6 +395,9 @@ var config = &configuration{
|
|||
Schedule: schedule.EmptyWeekly(),
|
||||
IDs: []string{},
|
||||
},
|
||||
|
||||
ParentalBlockHost: defaultParentalBlockHost,
|
||||
SafeBrowsingBlockHost: defaultSafeBrowsingBlockHost,
|
||||
},
|
||||
DHCP: &dhcpd.ServerConfig{
|
||||
LocalDomainName: "lan",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue