MT#55283 use perl ::IP module

Allows connecting to IPv6 addresses

Closes #1915

Change-Id: I6efe5bc5afd537507d1e88445cc9690b6abf1894
pull/1918/head
Richard Fuchs 1 month ago
parent 14b694bf25
commit 98d32cd170

@ -3,7 +3,7 @@
use strict;
use warnings;
use IO::Socket::INET;
use IO::Socket::IP;
use Getopt::Long;
use Config::Tiny;
@ -55,7 +55,7 @@ if ($help || !$argumentstring || !$optret || $port <= 0 || $port > 65535) {
}
# create a connecting socket
my $socket = IO::Socket::INET->new(
my $socket = IO::Socket::IP->new(
PeerHost => $ip,
PeerPort => $port,
Proto => 'tcp',

Loading…
Cancel
Save