From 34e97d4a3c9545f71af8302b661b642b7b120a84 Mon Sep 17 00:00:00 2001
From: Waqas Hussain <waqas20@gmail.com>
Date: Wed, 16 Dec 2009 00:11:54 +0500
Subject: prosody: Fixed a possible nil concatenation.

---
 prosody | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'prosody')

diff --git a/prosody b/prosody
index 6ff7743d..0577179f 100755
--- a/prosody
+++ b/prosody
@@ -208,8 +208,8 @@ function init_global_state()
 					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
 					});
-- 
cgit v1.2.3