11namespace SimpleDnsCrypt . Config
22{
33 public static class Global
4- {
4+ {
55 /// <summary>
66 /// The name of this application.
77 /// </summary>
88 public const string ApplicationName = "Simple DNSCrypt" ;
99
10- /// <summary>
11- /// Remote URI where the application will find the update informations.
12- /// </summary>
13- public const string ApplicationUpdateUri =
14- "https://raw.githubusercontent.com/bitbeans/SimpleDnsCrypt/master/update.yml" ;
10+ /// <summary>
11+ /// Remote URI where the application will find the update informations.
12+ /// </summary>
13+ public const string ApplicationUpdateUri =
14+ "https://raw.githubusercontent.com/bitbeans/SimpleDnsCrypt/master/update.yml" ;
1515
16- /// <summary>
17- /// Remote URI where the application will find the update informations.
18- /// </summary>
19- public const string ApplicationUpdateUri64 =
20- "https://raw.githubusercontent.com/bitbeans/SimpleDnsCrypt/master/update64.yml" ;
16+ /// <summary>
17+ /// Remote URI where the application will find the update informations.
18+ /// </summary>
19+ public const string ApplicationUpdateUri64 =
20+ "https://raw.githubusercontent.com/bitbeans/SimpleDnsCrypt/master/update64.yml" ;
2121
2222 /// <summary>
2323 /// The public key to validate the installer.
@@ -34,83 +34,93 @@ public static class Global
3434 /// </summary>
3535 public const string RedistributablePackage64 = "https://aka.ms/vs/16/release/VC_redist.x64.exe" ;
3636
37+ /// <summary>
38+ /// Output folder for logs.
39+ /// </summary>
40+ public const string LogDirectory = "logs" ;
41+
3742 /// <summary>
3843 /// The folder where the dnscrypt-proxy lives in.
3944 /// </summary>
4045 public const string DnsCryptProxyFolder = "dnscrypt-proxy" ;
4146
42- public const string DnsCryptProxyExecutableName = "dnscrypt-proxy.exe" ;
47+ public const string DnsCryptProxyExecutableName = "dnscrypt-proxy.exe" ;
4348
4449 public const string DnsCryptConfigurationFile = "dnscrypt-proxy.toml" ;
4550
46- /// <summary>
47- /// Time we wait on a service restart (ms) .
48- /// </summary>
49- public const int ServiceRestartTime = 5000 ;
51+ /// <summary>
52+ /// Logfile name of dnscrypt-proxy .
53+ /// </summary>
54+ public const string DnsCryptLogFile = "dnscrypt-proxy.log" ;
5055
51- /// <summary>
52- /// Time we wait on a service start (ms).
53- /// </summary>
54- public const int ServiceStartTime = 2500 ;
56+ /// <summary>
57+ /// Time we wait on a service restart (ms).
58+ /// </summary>
59+ public const int ServiceRestartTime = 5000 ;
5560
56- /// <summary>
57- /// Time we wait on a service stop (ms).
58- /// </summary>
59- public const int ServiceStopTime = 2500 ;
61+ /// <summary>
62+ /// Time we wait on a service start (ms).
63+ /// </summary>
64+ public const int ServiceStartTime = 2500 ;
6065
61- /// <summary>
62- /// Time we wait on a service uninstall (ms).
63- /// </summary>
64- public const int ServiceUninstallTime = 2500 ;
66+ /// <summary>
67+ /// Time we wait on a service stop (ms).
68+ /// </summary>
69+ public const int ServiceStopTime = 2500 ;
6570
66- /// <summary>
67- /// Time we wait on a service install (ms).
68- /// </summary>
69- public const int ServiceInstallTime = 3000 ;
71+ /// <summary>
72+ /// Time we wait on a service uninstall (ms).
73+ /// </summary>
74+ public const int ServiceUninstallTime = 2500 ;
7075
71- public const string DomainBlockLogFileName = "blocked.log" ;
72- public const string QueryLogFileName = "query.log" ;
76+ /// <summary>
77+ /// Time we wait on a service install (ms).
78+ /// </summary>
79+ public const int ServiceInstallTime = 3000 ;
80+
81+ public const string DomainBlockLogFileName = "blocked.log" ;
82+ public const string QueryLogFileName = "query.log" ;
7383
74- public const string WhitelistRuleFileName = "domain-whitelist.txt" ;
75- public const string BlacklistRuleFileName = "domain-blacklist.txt" ;
76- public const string BlacklistFileName = "blacklist.txt" ;
84+ public const string WhitelistRuleFileName = "domain-whitelist.txt" ;
85+ public const string BlacklistRuleFileName = "domain-blacklist.txt" ;
86+ public const string BlacklistFileName = "blacklist.txt" ;
7787
78- public const string CloakingRulesFileName = "cloaking-rules.txt" ;
79- public const string ForwardingRulesFileName = "forwarding-rules.txt" ;
88+ public const string CloakingRulesFileName = "cloaking-rules.txt" ;
89+ public const string ForwardingRulesFileName = "forwarding-rules.txt" ;
8090
8191 public const string GlobalResolver = "0.0.0.0:53" ;
82- public const string DefaultResolverIpv4 = "127.0.0.1:53" ;
83- public const string DefaultResolverIpv6 = "[::1]:53" ;
92+ public const string DefaultResolverIpv4 = "127.0.0.1:53" ;
93+ public const string DefaultResolverIpv6 = "[::1]:53" ;
8494
8595 /// <summary>
8696 /// List of files must exist.
8797 /// </summary>
8898 public static readonly string [ ] DnsCryptProxyFiles =
89- {
90- "dnscrypt-proxy.exe" ,
99+ {
100+ "dnscrypt-proxy.exe" ,
91101 "dnscrypt-proxy.toml" ,
92102 "LICENSE"
93- } ;
94-
95- /// <summary>
96- /// List of interfaces, marked as hidden.
97- /// </summary>
98- public static readonly string [ ] NetworkInterfaceBlacklist =
99- {
100- "Microsoft Virtual" ,
101- "Hamachi Network" ,
102- "VMware Virtual" ,
103- "VirtualBox" ,
104- "Software Loopback" ,
105- "Microsoft ISATAP" ,
106- "Microsoft-ISATAP" ,
107- "Teredo Tunneling Pseudo-Interface" ,
108- "Microsoft Wi-Fi Direct Virtual" ,
109- "Microsoft Teredo Tunneling Adapter" ,
110- "Von Microsoft gehosteter" ,
111- "Microsoft hosted" ,
112- "Virtueller Microsoft-Adapter" ,
113- "TAP"
114- } ;
115- }
103+ } ;
104+
105+ /// <summary>
106+ /// List of interfaces, marked as hidden.
107+ /// </summary>
108+ public static readonly string [ ] NetworkInterfaceBlacklist =
109+ {
110+ "Microsoft Virtual" ,
111+ "Hamachi Network" ,
112+ "VMware Virtual" ,
113+ "VirtualBox" ,
114+ "Software Loopback" ,
115+ "Microsoft ISATAP" ,
116+ "Microsoft-ISATAP" ,
117+ "Teredo Tunneling Pseudo-Interface" ,
118+ "Microsoft Wi-Fi Direct Virtual" ,
119+ "Microsoft Teredo Tunneling Adapter" ,
120+ "Von Microsoft gehosteter" ,
121+ "Microsoft hosted" ,
122+ "Virtueller Microsoft-Adapter" ,
123+ "TAP"
124+ } ;
125+ }
116126}
0 commit comments