Changeset

2778:d591e2c90807

prosody: Fixed a possible nil concatenation.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 16 Dec 2009 00:11:54 +0500
parents 2777:a0ea72846b46
children 2779:87b66be6d514
files prosody
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Thu Dec 10 22:13:04 2009 +0000
+++ b/prosody	Wed Dec 16 00:11:54 2009 +0500
@@ -198,8 +198,8 @@
 					cl.start(listener, { 
 						ssl = conntype ~= "tcp" and global_ssl_ctx,
 						port = port,
-						interface = config.get("*", "core", option.."_interface") 
-							or cl.get(listener).default_interface 
+						interface = (option and config.get("*", "core", option.."_interface"))
+							or cl.get(listener).default_interface
 							or config.get("*", "core", "interface"),
 						type = conntype
 					});