diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-10 16:51:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-10 16:51:38 +0200 |
commit | 0e34cffc7083b309641ba7f49764b211eb979218 (patch) | |
tree | f9267454f7fd133005ab18ab61b1b46d3aba4bea /net | |
parent | 510413f2218134fa1b834d0519be3550de8ab669 (diff) | |
download | prosody-0e34cffc7083b309641ba7f49764b211eb979218.tar.gz prosody-0e34cffc7083b309641ba7f49764b211eb979218.zip |
net.server: Allow arbitrary network backends to be configured
Diffstat (limited to 'net')
-rw-r--r-- | net/server.lua | 3 |
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() |