aboutsummaryrefslogtreecommitdiffstats
path: root/util/rfc3484.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-10 23:10:56 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-10 23:10:56 +0100
commit765f6f8a4c7cc0e9c11a25d4b023567abd3a14b0 (patch)
tree7d106febcc951f5b332e0e59795539b7ae1bb82f /util/rfc3484.lua
parentb47f264e2a9d27cdd0ed32e21439224c2dbefe76 (diff)
parentf0e489b59100e7894bada6a6d8ac8e69b3951aef (diff)
downloadprosody-765f6f8a4c7cc0e9c11a25d4b023567abd3a14b0.tar.gz
prosody-765f6f8a4c7cc0e9c11a25d4b023567abd3a14b0.zip
Merge with Zash
Diffstat (limited to 'util/rfc3484.lua')
-rw-r--r--util/rfc3484.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/rfc3484.lua b/util/rfc3484.lua
index dd855a84..5ee572a0 100644
--- a/util/rfc3484.lua
+++ b/util/rfc3484.lua
@@ -19,7 +19,7 @@ local function t_sort(t, comp)
end
end
-function source(dest, candidates)
+local function source(dest, candidates)
local function comp(ipA, ipB)
-- Rule 1: Prefer same address
if dest == ipA then
@@ -70,7 +70,7 @@ function source(dest, candidates)
return candidates[1];
end
-function destination(candidates, sources)
+local function destination(candidates, sources)
local sourceAddrs = {};
local function comp(ipA, ipB)
local ipAsource = sourceAddrs[ipA];