aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.hgignore22
-rw-r--r--Makefile7
-rw-r--r--net/server.lua4
-rwxr-xr-xprosody4
4 files changed, 31 insertions, 6 deletions
diff --git a/.hgignore b/.hgignore
new file mode 100644
index 00000000..b7f3c20c
--- /dev/null
+++ b/.hgignore
@@ -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
diff --git a/Makefile b/Makefile
index f030821c..3a3ea9ef 100644
--- a/Makefile
+++ b/Makefile
@@ -16,11 +16,12 @@ all: prosody.install prosodyctl.install prosody.cfg.lua.install
$(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
diff --git a/net/server.lua b/net/server.lua
index d7872f51..3491b190 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -653,13 +653,13 @@ addserver = function( listeners, port, addr, pattern, sslctx, maxconnections, st
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
diff --git a/prosody b/prosody
index f5f51bab..577dc178 100755
--- a/prosody
+++ b/prosody
@@ -179,7 +179,9 @@ function net_activate_ports(option, listener, default, conntype)
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