Rename time_ranges to schedules

This commit is contained in:
Frank Denis 2018-02-01 09:18:56 +01:00
parent cb0e2a1759
commit 1a34224c91
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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'}]