move default values up

Change-Id: I2d7d62b5a7891ae19bcdb01b08aef13a54e68baa
changes/57/38057/1
Richard Fuchs 6 years ago
parent d09071a16b
commit c3f495f8b9

@ -7,8 +7,8 @@ use IO::Socket::INET;
use Getopt::Long;
use Config::Tiny;
my $ip;
my $port;
my $ip = 'localhost';
my $port = 9900;
my $conffile = '/etc/rtpengine/rtpengine.conf';
my $listen;
@ -45,9 +45,6 @@ if (!$argumentstring || !$optret || $port <= 0 || $port > 65535) {
exit 1;
}
$ip //= '127.0.0.1';
$port //= 9900;
# create a connecting socket
my $socket = new IO::Socket::INET (
PeerHost => $ip,

Loading…
Cancel
Save