@@ -240,15 +240,11 @@ def testCurlHeaders(url, certPath):
240
240
paths_to_try = [None , Globals .CA_CERT_PATH , "curl-ca-bundle.crt" ]
241
241
242
242
for certificate_path in paths_to_try :
243
- if not testCurlHeaders ('https://07th-mod.com/' , certificate_path ):
244
- print ("chooseCurlCertificate(): Failed to download headers using CURL from 07th-mod.com using cert [{}]" .format (certificate_path ))
245
- continue
246
-
247
243
if not testCurlHeaders ('https://github.com/' , certificate_path ):
248
244
print ("chooseCurlCertificate(): Failed to download headers using CURL from github.com using cert [{}]" .format (certificate_path ))
249
245
continue
250
246
251
- print ("chooseCurlCertificate(): Will use certificate [{}] when using cURL with 07th-mod and github " .format (certificate_path ))
247
+ print ("chooseCurlCertificate(): Will use certificate [{}] when using cURL" .format (certificate_path ))
252
248
Globals .CA_CERT_PATH = certificate_path
253
249
return
254
250
@@ -272,15 +268,11 @@ def testURLOpenHeaders(url, certPath):
272
268
paths_to_try = [None , Globals .CA_CERT_PATH , "curl-ca-bundle.crt" ]
273
269
274
270
for certificate_path in paths_to_try :
275
- if not testURLOpenHeaders (Request ('https://07th-mod.com/' , headers = {"User-Agent" : "" }), certificate_path ):
276
- print ("chooseURLOpenCertificate(): Failed to download headers using urlOpen from 07th-mod.com using cert [{}]" .format (certificate_path ))
277
- continue
278
-
279
271
if not testURLOpenHeaders (Request ('https://github.com/' , headers = {"User-Agent" : "" }), certificate_path ):
280
272
print ("chooseURLOpenCertificate(): Failed to download headers using urlOpen from github.com using cert [{}]" .format (certificate_path ))
281
273
continue
282
274
283
- print ("chooseURLOpenCertificate(): Will use certificate [{}] for URLOpen() on 07th-mod and github " .format (certificate_path ))
275
+ print ("chooseURLOpenCertificate(): Will use certificate [{}] for URLOpen()" .format (certificate_path ))
284
276
Globals .URLOPEN_CERT_PATH = certificate_path
285
277
return
286
278
@@ -290,7 +282,7 @@ def testURLOpenHeaders(url, certPath):
290
282
@staticmethod
291
283
def scanForAria ():
292
284
ariaSearchPaths = ["./aria2c" , "./.aria2c" , "aria2c" ]
293
- Globals .ARIA_EXECUTABLE = findWorkingExecutablePath (ariaSearchPaths , ['https://07th-mod .com/' , '--dry-run=true' ])
285
+ Globals .ARIA_EXECUTABLE = findWorkingExecutablePath (ariaSearchPaths , ['https://github .com/' , '--dry-run=true' ])
294
286
295
287
if Globals .ARIA_EXECUTABLE is None :
296
288
print ("\n WARNING: aria2 failed to download 07th-mod website. Using fallback detection method." )
0 commit comments