diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-02-27 22:32:07 +0100 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-02-27 22:32:37 +0100 |
commit | 41388b9ba386def1ec2da932500288e2e314ccb1 (patch) | |
tree | 9337399e53e3497d44d1f92a033dadfa65930dbf /tests/http2-server.pl | |
parent | 727917555deb4dafe3b3bda9b1fd3c39b4e1677c (diff) |
tests: enable HTTP/2 tests to run with non-default port numbers
Diffstat (limited to 'tests/http2-server.pl')
-rwxr-xr-x | tests/http2-server.pl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/http2-server.pl b/tests/http2-server.pl index 72ed12e85..086d5aa76 100755 --- a/tests/http2-server.pl +++ b/tests/http2-server.pl @@ -28,6 +28,7 @@ my $pidfile = "log/nghttpx.pid"; my $logfile = "log/http2.log"; my $nghttpx = "nghttpx"; my $listenport = 9015; +my $connect = "127.0.0.1,8990"; #*************************************************************************** # Process command line options @@ -54,6 +55,13 @@ while(@ARGV) { shift @ARGV; } } + elsif($ARGV[0] eq '--connect') { + if($ARGV[1]) { + $connect = $ARGV[1]; + $connect =~ s/:/,/; + shift @ARGV; + } + } elsif($ARGV[0] eq '--logfile') { if($ARGV[1]) { $logfile = $ARGV[1]; @@ -66,7 +74,7 @@ while(@ARGV) { shift @ARGV; } -my $cmdline="$nghttpx --backend=127.0.0.1,8990 ". +my $cmdline="$nghttpx --backend=$connect ". "--frontend=\"*,$listenport;no-tls\" ". "--log-level=INFO ". "--pid-file=$pidfile ". |