Software /
code /
prosody
Comparison
net/server.lua @ 6483:63539dfb96e7
net.server: Rename 'server' config option to 'network_backend' (to select which net.server implementation to use)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Oct 2014 12:56:41 +0100 |
parent | 6482:410067cdeb2f |
child | 6484:913585bca01f |
comparison
equal
deleted
inserted
replaced
6482:410067cdeb2f | 6483:63539dfb96e7 |
---|---|
4 -- | 4 -- |
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 local server_type = prosody and require "core.configmanager".get("*", "server") or "select"; | 9 local server_type = prosody and require "core.configmanager".get("*", "network_backend") or "select"; |
10 if prosody and require "core.configmanager".get("*", "use_libevent") then | 10 if prosody and require "core.configmanager".get("*", "use_libevent") then |
11 server_type = "event"; | 11 server_type = "event"; |
12 end | 12 end |
13 | 13 |
14 if server_type == "event" then | 14 if server_type == "event" then |