From 539cea978eec83b46eb03313e60ba4a6ab09ceeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Fri, 2 Apr 2021 16:14:03 -0400 Subject: [PATCH] Throw an error when nothing will work. --- exec/load/dns.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec/load/dns.js b/exec/load/dns.js index 4670edd756..bbe4a37438 100644 --- a/exec/load/dns.js +++ b/exec/load/dns.js @@ -280,6 +280,9 @@ function DNS(servers) { this.sockets.push(sock); }, this); + if (this.sockets.length < 1) + throw('Unable to create any sockets'); + increment_id = function() { var ret = nextid; do { -- GitLab