Changeset

5723:24b6eb65480c

prosodyctl: Import local_addresses from the new util.net intead of luasocket
author Kim Alvefur <zash@zash.se>
date Mon, 01 Jul 2013 22:17:31 +0200
parents 5722:43de2a3f723a
children 5725:c4200292758c
files prosodyctl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Sat Jun 29 22:49:56 2013 +0200
+++ b/prosodyctl	Mon Jul 01 22:17:31 2013 +0200
@@ -870,7 +870,7 @@
 			end
 		end
 		
-		local local_addresses = socket.local_addresses and socket.local_addresses() or {};
+		local local_addresses = require"util.net".local_addresses() or {};
 		
 		for addr in it.values(local_addresses) do
 			if not ip.new_ip(addr).private then