More fields work
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@649 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
22b589859b
commit
b000e35bf9
@ -303,7 +303,7 @@ sub new {
|
|||||||
#}
|
#}
|
||||||
|
|
||||||
sub timeout {
|
sub timeout {
|
||||||
my $self = shift;
|
my Danga::DNS::Resolver::Query $self = shift;
|
||||||
|
|
||||||
trace(2, "NS Query timeout. Trying next host\n");
|
trace(2, "NS Query timeout. Trying next host\n");
|
||||||
if ($self->send_query) {
|
if ($self->send_query) {
|
||||||
@ -329,7 +329,8 @@ sub timeout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub error {
|
sub error {
|
||||||
my ($self, $error) = @_;
|
my Danga::DNS::Resolver::Query $self = shift;
|
||||||
|
my ($error) = @_;
|
||||||
|
|
||||||
trace(2, "NS Query error. Trying next host\n");
|
trace(2, "NS Query error. Trying next host\n");
|
||||||
if ($self->send_query) {
|
if ($self->send_query) {
|
||||||
@ -355,13 +356,13 @@ sub error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub run_callback {
|
sub run_callback {
|
||||||
my ($self, $response) = @_;
|
my Danga::DNS::Resolver::Query $self = shift;
|
||||||
trace(2, "NS Query callback($self->{host} = $response\n");
|
trace(2, "NS Query callback($self->{host} = $_[0]\n");
|
||||||
$self->{asker}->run_callback($response, $self->{host});
|
$self->{asker}->run_callback($_[0], $self->{host});
|
||||||
}
|
}
|
||||||
|
|
||||||
sub send_query {
|
sub send_query {
|
||||||
my ($self) = @_;
|
my Danga::DNS::Resolver::Query $self = shift;
|
||||||
|
|
||||||
my $dst = $self->{resolver}->ns($self->{ns}++);
|
my $dst = $self->{resolver}->ns($self->{ns}++);
|
||||||
return unless defined $dst;
|
return unless defined $dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user