mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 18:08:30 -07:00
all: imp docs
This commit is contained in:
parent
491287164d
commit
11160bc62b
@ -66,7 +66,8 @@ type Persistent struct {
|
|||||||
|
|
||||||
SafeSearch filtering.SafeSearch
|
SafeSearch filtering.SafeSearch
|
||||||
|
|
||||||
// BlockedServices is the configuration of blocked services of a client.
|
// BlockedServices is the configuration of blocked services of a client. It
|
||||||
|
// must not be nil after initialization.
|
||||||
BlockedServices *filtering.BlockedServices
|
BlockedServices *filtering.BlockedServices
|
||||||
|
|
||||||
Name string
|
Name string
|
||||||
|
@ -267,7 +267,7 @@ func copyBlockedServices(
|
|||||||
var weekly *schedule.Weekly
|
var weekly *schedule.Weekly
|
||||||
if sch != nil {
|
if sch != nil {
|
||||||
weekly = sch.Clone()
|
weekly = sch.Clone()
|
||||||
} else if prev != nil && prev.BlockedServices != nil {
|
} else if prev != nil {
|
||||||
weekly = prev.BlockedServices.Schedule.Clone()
|
weekly = prev.BlockedServices.Schedule.Clone()
|
||||||
} else {
|
} else {
|
||||||
weekly = schedule.EmptyWeekly()
|
weekly = schedule.EmptyWeekly()
|
||||||
|
@ -49,7 +49,7 @@ func newPersistentClient(name string) (c *client.Persistent) {
|
|||||||
Name: name,
|
Name: name,
|
||||||
UID: client.MustNewUID(),
|
UID: client.MustNewUID(),
|
||||||
BlockedServices: &filtering.BlockedServices{
|
BlockedServices: &filtering.BlockedServices{
|
||||||
Schedule: &schedule.Weekly{},
|
Schedule: schedule.EmptyWeekly(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user