diff options
Diffstat (limited to 'net/resolvers/service.lua')
-rw-r--r-- | net/resolvers/service.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua index 036317e5..9e634dbe 100644 --- a/net/resolvers/service.lua +++ b/net/resolvers/service.lua @@ -34,6 +34,11 @@ function methods:next(cb) local dns_resolver = adns.resolver(); dns_resolver:lookup(function (answer) if answer then + if #answer == 0 then + ready(); + return; + end + if #answer == 1 and answer[1].srv.target == "." then -- No service here ready(); return; |