Skip to content

Commit 844b136

Browse files
committed
Add relay.md
see #455
1 parent e62c3ce commit 844b136

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SimpleDnsCrypt/Helper/PatchHelper.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ public static bool Patch()
3939
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.cache_min_ttl = 2400;
4040
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.cache_neg_min_ttl = 60;
4141
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.cache_neg_max_ttl = 600;
42+
var sources = DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.sources;
43+
if (!sources.ContainsKey("relays"))
44+
{
45+
sources.Add("relays", new Models.Source
46+
{
47+
urls = new string[] { "https://github.com/DNSCrypt/dnscrypt-resolvers/raw/master/v2/relays.md", "https://download.dnscrypt.info/resolvers-list/v2/relays.md" },
48+
cache_file = "relays.md",
49+
minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3",
50+
refresh_delay = 72,
51+
prefix = ""
52+
});
53+
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.sources = sources;
54+
}
4255
return DnscryptProxyConfigurationManager.SaveConfiguration();
4356
}
4457
return false;

0 commit comments

Comments
 (0)