changeset 4945:9d65eb3fcb15

mod_net_proxy: Fix for bitop with Lua 5.4
author moparisthebest <admin@moparisthebest.com>
date Fri, 20 May 2022 08:39:17 -0400
parents e67cc71727ca
children fa415cd9eeca
files mod_net_proxy/README.markdown mod_net_proxy/mod_net_proxy.lua
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_net_proxy/README.markdown	Tue May 17 11:44:44 2022 +0200
+++ b/mod_net_proxy/README.markdown	Fri May 20 08:39:17 2022 -0400
@@ -173,5 +173,7 @@
 
   ----- -----
   trunk Works
+  0.12  Works
+  0.11  Works
   0.10  Works
   ----- -----
--- a/mod_net_proxy/mod_net_proxy.lua	Tue May 17 11:44:44 2022 +0200
+++ b/mod_net_proxy/mod_net_proxy.lua	Fri May 20 08:39:17 2022 -0400
@@ -8,7 +8,7 @@
 
 -- Imports
 local softreq = require "util.dependencies".softreq;
-local bit = assert(softreq "bit" or softreq "bit32", "No bit module found. See https://prosody.im/doc/depends#bitop");
+local bit = assert(softreq "bit" or softreq "bit32" or softreq "util.bitcompat", "No bit module found. See https://prosody.im/doc/depends#bitop");
 local hex = require "util.hex";
 local ip = require "util.ip";
 local net = require "util.net";