prosody

changeset 2778
d591e2c90807
parent 2769
826f6fb7036d
child 2789
2419ca0bfab3
--- 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
 					});

mercurial