aboutsummaryrefslogtreecommitdiff
path: root/src/win32_dns.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32_dns.erl')
-rw-r--r--src/win32_dns.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/win32_dns.erl b/src/win32_dns.erl
index 5dda22b98..a70e81f30 100644
--- a/src/win32_dns.erl
+++ b/src/win32_dns.erl
@@ -5,7 +5,7 @@
%%% Created : 5 Mar 2009 by Geoff Cant
%%%
%%%
-%%% ejabberd, Copyright (C) 2002-2016 ProcessOne
+%%% ejabberd, Copyright (C) 2002-2019 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU General Public License as
@@ -26,7 +26,6 @@
-module(win32_dns).
-export([get_nameservers/0]).
--include("ejabberd.hrl").
-include("logger.hrl").
-define(IF_KEY, "\\hklm\\system\\CurrentControlSet\\Services\\TcpIp\\Parameters\\Interfaces").
@@ -39,7 +38,7 @@ get_nameservers() ->
is_good_ns(Addr) ->
element(1,
- inet_res:nnslookup("a.root-servers.net", in, any, [{Addr,53}],
+ inet_res:nnslookup("a.root-servers.net", in, a, [{Addr,53}],
timer:seconds(5)
)
) =:= ok.