aboutsummaryrefslogtreecommitdiff
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-08-29 15:23:39 +0200
committerKim Alvefur <zash@zash.se>2017-08-29 15:23:39 +0200
commit153bcc9df5153e9515c19d9cc31b95cb5389447d (patch)
treefa5901f01044b0b35be3232744f1a42760b3d0a4 /prosodyctl
parentf79cc1a386d0fce8f1c274ff7217087cc5e87415 (diff)
downloadprosody-im-server-153bcc9df5153e9515c19d9cc31b95cb5389447d.tar
prosody-im-server-153bcc9df5153e9515c19d9cc31b95cb5389447d.zip
prosody, prosodyctl: Fix traceback if ssl config is missing (thanks lookshe and sol)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index cd58212e..ce81877d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -253,7 +253,7 @@ local prosodyctl = require "util.prosodyctl"
local socket = require "socket"
local http = require "net.http"
-local config_ssl = config.get("*", "ssl")
+local config_ssl = config.get("*", "ssl") or {}
local https_client = config.get("*", "client_https_ssl")
http.default.options.sslctx = require "core.certmanager".create_context("client_https port 0", "client",
{ capath = config_ssl.capath, cafile = config_ssl.cafile, verify = "peer", }, https_client);