Skip to content

Commit

Permalink
Bump the refresh delay for sources by a hour
Browse files Browse the repository at this point in the history
This allows for a better distribution
  • Loading branch information
jedisct1 committed Jan 10, 2025
1 parent c2cb7e6 commit 7d2eede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dnscrypt-proxy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ func (config *Config) loadSource(proxy *Proxy, cfgSourceName string, cfgSource *
if cfgSource.RefreshDelay <= 0 {
cfgSource.RefreshDelay = 72
}
cfgSource.RefreshDelay = Min(168, Max(24, cfgSource.RefreshDelay))
cfgSource.RefreshDelay = Min(169, Max(25, cfgSource.RefreshDelay))
source, err := NewSource(
cfgSourceName,
proxy.xTransport,
Expand Down
10 changes: 5 additions & 5 deletions dnscrypt-proxy/example-dnscrypt-proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ format = 'tsv'
urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md']
cache_file = 'public-resolvers.md'
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
refresh_delay = 72
refresh_delay = 73
prefix = ''

### Anonymized DNS relays
Expand All @@ -724,7 +724,7 @@ format = 'tsv'
urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md', 'https://download.dnscrypt.info/resolvers-list/v3/relays.md']
cache_file = 'relays.md'
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
refresh_delay = 72
refresh_delay = 73
prefix = ''

### ODoH (Oblivious DoH) servers and relays
Expand All @@ -733,13 +733,13 @@ format = 'tsv'
# urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/odoh-servers.md', 'https://download.dnscrypt.info/resolvers-list/v3/odoh-servers.md']
# cache_file = 'odoh-servers.md'
# minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
# refresh_delay = 24
# refresh_delay = 73
# prefix = ''
# [sources.odoh-relays]
# urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/odoh-relays.md', 'https://download.dnscrypt.info/resolvers-list/v3/odoh-relays.md']
# cache_file = 'odoh-relays.md'
# minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
# refresh_delay = 24
# refresh_delay = 73
# prefix = ''

### Quad9
Expand All @@ -764,7 +764,7 @@ format = 'tsv'
# urls = ["https://www.dnscry.pt/resolvers.md"]
# minisign_key = "RWQM31Nwkqh01x88SvrBL8djp1NH56Rb4mKLHz16K7qsXgEomnDv6ziQ"
# cache_file = "dnscry.pt-resolvers.md"
# refresh_delay = 72
# refresh_delay = 73
# prefix = "dnscry.pt-"


Expand Down

0 comments on commit 7d2eede

Please sign in to comment.