Software /
code /
prosody
Comparison
net/resolvers/service.lua @ 10385:62a7042e0771 0.11
net.resolvers: Abort on hostnames not passing IDNA validation
Prevents error on trying to use nil.
Needs better error reporting in the future.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Nov 2019 19:36:19 +0100 |
parent | 10384:94c9c574cd8a |
child | 10386:cf93a951da37 |
child | 10400:4c2d789a106b |
comparison
equal
deleted
inserted
replaced
10384:94c9c574cd8a | 10385:62a7042e0771 |
---|---|
21 else | 21 else |
22 cb(...); | 22 cb(...); |
23 end | 23 end |
24 end); | 24 end); |
25 return; | 25 return; |
26 end | |
27 | |
28 if not self.hostname then | |
29 -- FIXME report IDNA error | |
30 cb(nil); | |
26 end | 31 end |
27 | 32 |
28 local targets = {}; | 33 local targets = {}; |
29 local function ready() | 34 local function ready() |
30 self.targets = targets; | 35 self.targets = targets; |