client/example.pl PORT: Implement commandline override

This commit is contained in:
Petr Baudis 2011-12-03 15:46:27 +01:00
parent 643e33c342
commit a5745ea516

View file

@ -126,7 +126,8 @@ sub take_action($%) {
# connect
my ($remote_host, $remote_port, $socket);
$remote_host = "localhost";
$remote_port = 27753;
$remote_port = $ARGV[0];
$remote_port ||= 27753;
$socket = IO::Socket::INET->new(
PeerAddr => $remote_host,