Diff

prosodyctl @ 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
parent 5657:7957f14038e8
child 5809:be997c6a69be
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