Add reading torrent list from file cache, add ffprobe check, bring back proxy in config
This commit is contained in:
@@ -29,6 +29,11 @@ func NetworkTest(testURL string) {
|
||||
log := logutil.NewLogger(logPath)
|
||||
|
||||
proxyURL := os.Getenv("PROXY")
|
||||
if proxyURL != "" {
|
||||
log.Infof("Using proxy: %s", proxyURL)
|
||||
} else {
|
||||
log.Info("You can set a proxy by setting the PROXY environment variable")
|
||||
}
|
||||
|
||||
repoClient4 := http.NewHTTPClient("", 0, 1, false, []string{}, proxyURL, log.Named("network_test"))
|
||||
repoClient6 := http.NewHTTPClient("", 0, 1, true, []string{}, proxyURL, log.Named("network_test"))
|
||||
|
||||
Reference in New Issue
Block a user