mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-03 02:13:35 +02:00
client/example.pl PORT: Implement commandline override
This commit is contained in:
parent
643e33c342
commit
a5745ea516
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ sub take_action($%) {
|
||||||
# connect
|
# connect
|
||||||
my ($remote_host, $remote_port, $socket);
|
my ($remote_host, $remote_port, $socket);
|
||||||
$remote_host = "localhost";
|
$remote_host = "localhost";
|
||||||
$remote_port = 27753;
|
$remote_port = $ARGV[0];
|
||||||
|
$remote_port ||= 27753;
|
||||||
|
|
||||||
$socket = IO::Socket::INET->new(
|
$socket = IO::Socket::INET->new(
|
||||||
PeerAddr => $remote_host,
|
PeerAddr => $remote_host,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue