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,