aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index a9a0f566..8b6fbc0b 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -64,6 +64,11 @@ elseif server_type == "select" then
else
server = require("net.server_"..server_type);
set_config = server.set_config;
+ if not server.get_backend then
+ function server.get_backend()
+ return server_type;
+ end
+ end
end
-- If server.hook_signal exists, replace signal.signal()