File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments