Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
perl-doh
Commits
55de87ac
Unverified
Commit
55de87ac
authored
Jun 29, 2018
by
Gavin Brown
Browse files
pass debug to resolver, and also set some other resolver options
parent
90e0cb2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dohd.pl
View file @
55de87ac
...
...
@@ -20,7 +20,14 @@ GetOptions(
'
debug
'
=>
\
$
HTTP::Daemon::
DEBUG
,
);
my
$resolver
=
Net::DNS::
Resolver
->
new
('
nameservers
'
=>
[
$raddr
]);
my
$resolver
=
Net::DNS::
Resolver
->
new
(
'
nameservers
'
=>
[
$raddr
],
'
debug
'
=>
$
HTTP::Daemon::
DEBUG
,
'
persistent_tcp
'
=>
1
,
'
tcp_timeout
'
=>
1
,
'
udp_timeout
'
=>
1
,
'
retry
'
=>
1
,
);
my
$server
=
HTTP::
Daemon
->
new
(
'
LocalAddr
'
=>
$addr
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment