Skip Menu |

This queue is for tickets about the Net-SCP-Expect CPAN distribution.

Report information
The Basics
Id: 92437
Status: new
Priority: 0/
Queue: Net-SCP-Expect

People
Owner: Nobody in particular
Requestors: doug [...] chartrand.net
Cc:
AdminCc:

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



Subject: IPv6 addresses fail to connect with version .16
Date: Fri, 24 Jan 2014 08:20:26 -0600
To: bug-Net-SCP-Expect [...] rt.cpan.org
From: Doug Chartrand <doug [...] chartrand.net>
The following code segment in _parse_scp_string fails when the host is an IPv6 address: @parts = split(/:/,$temp); if (@parts) { if (@parts > 1) { $host = join('',@parts[0,1..scalar(@parts)-2]); $dest = $parts[-1]; } else { $host = $parts[0]; } } An IPv6 host address such as: fd72:7f46:c411:0:290:faff:fe3d:f26a Becomes fd727f46c4110290fafffe3df26a After the above code is executed, and the host connection times out when that address is used subsequently in the code. I did a quick fix this way: @parts = split(/:/,$temp); if (@parts) { if (@parts > 1) { | $host = join(':',@parts[0,1..scalar(@parts)-2]); $dest = $parts[-1]; } else { $host = $parts[0]; } } Doug Chartrand - doug@chartrand.net