Mercurial > prosody-modules
comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1700:ab3175685f94
mod_s2s_auth_dane: Don't count number of RRs in DNS reply if the DNS lib already did
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 06 May 2015 00:51:46 +0200 |
| parents | 7f4c64cfed09 |
| children | 9b429fc9e8a0 |
comparison
equal
deleted
inserted
replaced
| 1699:54b93cf0f631 | 1700:ab3175685f94 |
|---|---|
| 92 if not answer.secure then | 92 if not answer.secure then |
| 93 module:log("debug", "Results are not secure"); | 93 module:log("debug", "Results are not secure"); |
| 94 return cb(host_session); | 94 return cb(host_session); |
| 95 end | 95 end |
| 96 | 96 |
| 97 local n = #answer | 97 local n = answer.n or #answer; |
| 98 if n == 0 then | 98 if n == 0 then |
| 99 -- No SRV records, we could proceed with the domainname and | 99 -- No SRV records, we could proceed with the domainname and |
| 100 -- default port but that will currently not work properly since | 100 -- default port but that will currently not work properly since |
| 101 -- mod_s2s doesn't keep the answer around for that | 101 -- mod_s2s doesn't keep the answer around for that |
| 102 return cb(host_session); | 102 return cb(host_session); |
