From 658050a91a525e91c2fa7a3de1610925aee7e255 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Thu, 28 Jun 2018 16:30:32 +0200 Subject: [PATCH] [fix] sync: could not sync on localhost --- app/modules/crawler/lib/sync/P2PSyncDownloader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/crawler/lib/sync/P2PSyncDownloader.ts b/app/modules/crawler/lib/sync/P2PSyncDownloader.ts index 7e6641ad7..474973635 100644 --- a/app/modules/crawler/lib/sync/P2PSyncDownloader.ts +++ b/app/modules/crawler/lib/sync/P2PSyncDownloader.ts @@ -66,7 +66,7 @@ export class P2PSyncDownloader implements ISyncDownloader { node.tta = 1; node.nbSuccess = 0; if (node.host.match(/^(localhost|192|127)/)) { - node.excluded = true + node.tta = this.MAX_DELAY_PER_DOWNLOAD } return node; })()) -- GitLab