use command-line arguments if provided
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 30 Dec 2011 15:15:59 +0000 (16:15 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 30 Dec 2011 15:15:59 +0000 (16:15 +0100)
acs-proxy.pl

index d5f4a95..1410c2a 100755 (executable)
@@ -6,4 +6,8 @@ use strict;
 use lib 'lib';
 use SIP2::ACS;
 
-SIP2::ACS::proxy( '127.0.0.1:6001' => '10.60.0.251:6001' );
+my @proxy = ( '10.60.0.11:6001' => '10.60.0.11:6002' );
+@proxy = @ARGV if @ARGV;
+
+SIP2::ACS::proxy( @proxy );
+