Rename time_ranges to schedules
This commit is contained in:
parent
cb0e2a1759
commit
1a34224c91
|
@ -45,7 +45,7 @@ type Config struct {
|
|||
MaxClients uint32 `toml:"max_clients"`
|
||||
FallbackResolver string `toml:"fallback_resolver"`
|
||||
IgnoreSystemDNS bool `toml:"ignore_system_dns"`
|
||||
AllWeeklyRanges map[string]WeeklyRangesStr `toml:"time_ranges"`
|
||||
AllWeeklyRanges map[string]WeeklyRangesStr `toml:"schedules"`
|
||||
}
|
||||
|
||||
func newConfig() Config {
|
||||
|
|
|
@ -317,13 +317,13 @@ cache_neg_ttl = 60
|
|||
|
||||
## Time access restrictions (WIP)
|
||||
|
||||
[time_ranges]
|
||||
[schedules]
|
||||
|
||||
[time_ranges.'time-to-sleep']
|
||||
[schedules.'time-to-sleep']
|
||||
mon = [{after='21:00', before='07:00'}]
|
||||
tue = [{after='21:00', before='07:00'}]
|
||||
wed = [{after='21:00', before='07:00'}]
|
||||
thu = [{after='21:00', before='07:00'}]
|
||||
fri = [{after='23:00', before='07:00'}]
|
||||
sat = [{after='23:00', before='07:00'}]
|
||||
sun = [{after='22:00', before='07:00'}]
|
||||
sun = [{after='21:00', before='07:00'}]
|
||||
|
|
Loading…
Reference in New Issue