summaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-12-11 21:41:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-12-11 21:41:00 +0000
commit9b3b7ad22ea6d677e2e50f3a7d1c41214b49ae29 (patch)
treec73a2d417536cbaff96a99369fe7f063f8db90e2 /tests/httpserver.pl
parent1b8ac7c6b5c95a74ea49b2aa6d4b4650c401e95e (diff)
downloadcurl-9b3b7ad22ea6d677e2e50f3a7d1c41214b49ae29.tar.gz
HTTP IPv6 support added to the test suite
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-xtests/httpserver.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index d458a35c2..bdd21f9a8 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -6,6 +6,7 @@ my $verbose=0; # set to 1 for debugging
my $dir=".";
my $port = 8999; # just a default
+my $ipv6;
do {
if($ARGV[0] eq "-v") {
$verbose=1;
@@ -17,6 +18,9 @@ do {
elsif($ARGV[0] =~ /^(\d+)$/) {
$port = $1;
}
+ elsif($ARGV[0] =~ /^ipv6/i) {
+ $ipv6="--ipv6 ";
+ }
} while(shift @ARGV);
-exec("server/sws $port $dir");
+exec("server/sws $ipv6$port $dir");