aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/s2smanager.lua2
-rw-r--r--plugins/mod_posix.lua4
2 files changed, 2 insertions, 4 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index ae834a9c..7827381d 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -43,7 +43,7 @@ local log = logger_init("s2smanager");
local sha256_hash = require "util.hashes".sha256;
-local dialback_secret = "This is very secret!!! Ha!";
+local dialback_secret = sha256_hash(tostring{} .. math.random() .. socket.gettime(), true);
local dns = require "net.dns";
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 8dc4c77d..7559d3ed 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -35,15 +35,13 @@ if not config_get("*", "core", "no_daemonize") then
log("info", "Daemonized to pid %d", ret);
os.exit(0);
else
- log("info", "Successfully daemonized");
-
if logwriter then
local ok, ret = logger_set(logwriter);
if not ok then
log("error", "Couldn't set new log output: %s", ret);
end
end
-
+ log("info", "Successfully daemonized");
end
end
module:add_event_hook("server-starting", daemonize_server);