From aea2daa15fa3e6777e0aa9d38c730a4de05e3918 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 29 Mar 2017 13:19:52 -0600 Subject: [PATCH] allow undefined domains option --- bin/stunnel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/stunnel.js b/bin/stunnel.js index 9812114..54bf72f 100755 --- a/bin/stunnel.js +++ b/bin/stunnel.js @@ -181,7 +181,7 @@ function daplieTunnel() { var domainsMap = {}; -program.locals = program.locals.concat(program.domains); +program.locals = program.locals.concat(program.domains || []); program.locals.forEach(function (proxy) { domainsMap[proxy.hostname] = true; });