Software /
code /
prosody
Comparison
util/rfc6724.lua @ 7259:d8300985f2bb
net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 10 Mar 2016 17:52:03 +0000 |
parent | 5552:40e7a6cf15ff |
child | 12975:d10957394a3c |
comparison
equal
deleted
inserted
replaced
7258:b8f60dd8e99a | 7259:d8300985f2bb |
---|---|
8 -- This is used to sort destination addresses by preference | 8 -- This is used to sort destination addresses by preference |
9 -- during S2S connections. | 9 -- during S2S connections. |
10 -- We can't hand this off to getaddrinfo, since it blocks | 10 -- We can't hand this off to getaddrinfo, since it blocks |
11 | 11 |
12 local ip_commonPrefixLength = require"util.ip".commonPrefixLength | 12 local ip_commonPrefixLength = require"util.ip".commonPrefixLength |
13 local new_ip = require"util.ip".new_ip; | |
14 | 13 |
15 local function commonPrefixLength(ipA, ipB) | 14 local function commonPrefixLength(ipA, ipB) |
16 local len = ip_commonPrefixLength(ipA, ipB); | 15 local len = ip_commonPrefixLength(ipA, ipB); |
17 return len < 64 and len or 64; | 16 return len < 64 and len or 64; |
18 end | 17 end |