From c3f495f8b99ded7ac22129cf0bb75f16f2765289 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 27 Feb 2020 14:22:03 -0500 Subject: [PATCH] move default values up Change-Id: I2d7d62b5a7891ae19bcdb01b08aef13a54e68baa --- utils/rtpengine-ctl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utils/rtpengine-ctl b/utils/rtpengine-ctl index 9c1bf33e3..60eece4b1 100755 --- a/utils/rtpengine-ctl +++ b/utils/rtpengine-ctl @@ -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,