From 04a3e2f6a84c1ca1b3e34e69664e3b267b9556a7 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Wed, 2 Dec 2015 23:06:33 +0100 Subject: [PATCH] Fix #246 prefer to use DNS instead of IPv4 and IPv6 --- app/lib/entity/peer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/entity/peer.js b/app/lib/entity/peer.js index 673c50ea7..4fb497f16 100644 --- a/app/lib/entity/peer.js +++ b/app/lib/entity/peer.js @@ -131,7 +131,7 @@ function Peer(json) { }; that.connect = function (done){ - vucoin(that.getIPv6() || that.getIPv4() || that.getDns(), that.getPort(), done, { + vucoin(that.getDns() || that.getIPv6() || that.getIPv4(), that.getPort(), done, { timeout: 2000 }); }; -- GitLab