Changeset

1306:802630868d70

Merge with trunk
author Waqas Hussain <waqas20@gmail.com>
date Thu, 04 Jun 2009 20:48:23 +0500
parents 1305:37657578ea85 (current diff) 1300:954973fd2939 (diff)
children 1307:c9c58aa990bb
files
diffstat 4 files changed, 31 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Thu Jun 04 20:48:23 2009 +0500
@@ -0,0 +1,22 @@
+syntax: glob
+.hgignore
+data
+local
+www_files
+html/*
+prosody.lua
+prosody.cfg.lua
+config.unix
+*.patch
+*.orig
+*.rej
+*.save
+*~
+*.report
+*.o
+*.so
+*.install
+*.pid
+*.log
+*.err
+*.debug
--- a/Makefile	Thu Jun 04 20:27:53 2009 +0500
+++ b/Makefile	Thu Jun 04 20:48:23 2009 +0500
@@ -16,11 +16,12 @@
 	$(MAKE) -C util-src install
 
 install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so
-	install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA)
+	install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE)
+	install -m750 -d $(DATA)
 	install -d $(CONFIG)/certs
 	install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util
-	install ./prosody.install $(BIN)/prosody
-	install ./prosodyctl.install $(BIN)/prosodyctl
+	install -m755 ./prosody.install $(BIN)/prosody
+	install -m755 ./prosodyctl.install $(BIN)/prosodyctl
 	install -m644 core/* $(SOURCE)/core
 	install -m644 net/* $(SOURCE)/net
 	install -m644 util/* $(SOURCE)/util
--- a/net/server.lua	Thu Jun 04 20:27:53 2009 +0500
+++ b/net/server.lua	Thu Jun 04 20:48:23 2009 +0500
@@ -653,13 +653,13 @@
         err = "luasec not found"
     end
     if err then
-        out_error( "server.lua: ", err )
+        out_error( "server.lua, port ", port, ": ", err )
         return nil, err
     end
     addr = addr or "*"
     local server, err = socket_bind( addr, port )
     if err then
-        out_error( "server.lua: ", err )
+        out_error( "server.lua, port ", port, ": ", err )
         return nil, err
     end
     local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, maxconnections, startssl )    -- wrap new server socket
--- a/prosody	Thu Jun 04 20:27:53 2009 +0500
+++ b/prosody	Thu Jun 04 20:48:23 2009 +0500
@@ -179,7 +179,9 @@
 				cl.start(listener, { 
 					ssl = conntype ~= "tcp" and global_ssl_ctx,
 					port = port,
-					interface = config.get("*", "core", option.."_interface"),
+					interface = config.get("*", "core", option.."_interface") 
+						or cl.get(listener).default_interface 
+						or config.get("*", "core", "interface"),
 					type = conntype
 				});
 			end