Skip Menu |
 

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 131626
Status: new
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: BESINT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::SMTP->new() Host array with empty return nothing in host() and fail starttls()
Download (untitled) / with headers
text/plain 590b
In Host array of Net::SMTP->new host can not be empty if then called starttls() and produce "Cannot determine peer hostname for verification". host() returns empty too. But if send to array a knowingly false host, then everything works. Error: my $smtp_server=""; my $smtp = Net::SMTP->new( Host => [$smtp_server, "example.com"], ); $smtp->host(); # empty $smtp->starttls(); # "Cannot determine peer hostname for verification" Work: my $smtp_server="zzz"; my $smtp = Net::SMTP->new( Host => [$smtp_server, "example.com"], ); $smtp->host(); # "example.com" $smtp->starttls(); # work


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.