X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Frfc3484.lua;h=5ee572a0ae0ecab3239599b502a7e8c9ebd61509;hb=dad31927fd73cbcad3aae213951616aec72e4081;hp=dd855a84d2e6d862380eb2424654a94d1a4c8243;hpb=0e2790d68fc5eae42ccc5505fecda6ecf6c0cf00;p=prosody.git 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];