Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5722:43de2a3f723a | 5723:24b6eb65480c |
---|---|
868 external_addresses:add(record.aaaa); | 868 external_addresses:add(record.aaaa); |
869 end | 869 end |
870 end | 870 end |
871 end | 871 end |
872 | 872 |
873 local local_addresses = socket.local_addresses and socket.local_addresses() or {}; | 873 local local_addresses = require"util.net".local_addresses() or {}; |
874 | 874 |
875 for addr in it.values(local_addresses) do | 875 for addr in it.values(local_addresses) do |
876 if not ip.new_ip(addr).private then | 876 if not ip.new_ip(addr).private then |
877 external_addresses:add(addr); | 877 external_addresses:add(addr); |
878 else | 878 else |