Changeset

6520:c6caaa440e74

certmanager: Return final ssl config along with ssl context on success
author Kim Alvefur <zash@zash.se>
date Wed, 19 Nov 2014 14:47:03 +0100
parents 6519:367db22cf7d2
children 6521:29c7586665f5
files core/certmanager.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Wed Nov 19 14:45:20 2014 +0100
+++ b/core/certmanager.lua	Wed Nov 19 14:47:03 2014 +0100
@@ -137,8 +137,10 @@
 		else
 			log("error", "SSL/TLS: Error initialising for %s: %s", host, err);
 		end
+	else
+		err = nil;
 	end
-	return ctx, err;
+	return ctx, err or user_ssl_config;
 end
 
 function reload_ssl_config()