Diff

util-src/net.c @ 12976:a187600ec7d6

util: Add compat for prosody module name change to C sources
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 18:03:07 +0100
parent 12575:1f6f05a98fcd
line wrap: on
line diff
--- a/util-src/net.c	Fri Mar 17 16:23:16 2023 +0100
+++ b/util-src/net.c	Fri Mar 17 18:03:07 2023 +0100
@@ -189,7 +189,7 @@
 	return 1;
 }
 
-int luaopen_util_net(lua_State *L) {
+int luaopen_prosody_util_net(lua_State *L) {
 	luaL_checkversion(L);
 	luaL_Reg exports[] = {
 		{ "local_addresses", lc_local_addresses },
@@ -202,3 +202,6 @@
 	luaL_setfuncs(L, exports, 0);
 	return 1;
 }
+int luaopen_util_net(lua_State *L) {
+	return luaopen_prosody_util_net(L);
+}