aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-10 16:51:38 +0200
committerKim Alvefur <zash@zash.se>2016-08-10 16:51:38 +0200
commit6d124da8b84033ba59b692a6f67a850984f4b207 (patch)
treef9267454f7fd133005ab18ab61b1b46d3aba4bea
parenta6cef24d86698e30f0ce8ff22d7af3fd97067ea0 (diff)
downloadprosody-6d124da8b84033ba59b692a6f67a850984f4b207.tar.gz
prosody-6d124da8b84033ba59b692a6f67a850984f4b207.zip
net.server: Allow arbitrary network backends to be configured
-rw-r--r--net/server.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 12ae5c44..a9a0f566 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -62,7 +62,8 @@ elseif server_type == "select" then
server.changesettings(select_settings);
end
else
- error("Unsupported server type")
+ server = require("net.server_"..server_type);
+ set_config = server.set_config;
end
-- If server.hook_signal exists, replace signal.signal()