mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +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
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue