From dad8c9a74d021087c896ccc090b85a8fce26e866 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Thu, 15 May 2014 21:00:37 -0400 Subject: [PATCH] Update for the active http test to force it to use ipv4. It was having trouble because the httpd.py script would start up a webserver on ipv4 but on some platforms and with some versions of curl "localhost" will attempt to connect to ::1. --- testing/btest/scripts/base/utils/active-http.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/btest/scripts/base/utils/active-http.test b/testing/btest/scripts/base/utils/active-http.test index 377c0dfd7b..442d5b9e06 100644 --- a/testing/btest/scripts/base/utils/active-http.test +++ b/testing/btest/scripts/base/utils/active-http.test @@ -1,7 +1,7 @@ # @TEST-REQUIRES: which python # @TEST-REQUIRES: which curl # -# @TEST-EXEC: btest-bg-run httpd python $SCRIPTS/httpd.py --max 1 +# @TEST-EXEC: btest-bg-run httpd python $SCRIPTS/httpd.py --max 1 --addr=127.0.0.1 # @TEST-EXEC: sleep 3 # @TEST-EXEC: btest-bg-run bro bro -b %INPUT # @TEST-EXEC: btest-bg-wait 15 @@ -13,7 +13,7 @@ redef exit_only_after_terminate = T; event bro_init() { - local req = ActiveHTTP::Request($url="localhost:32123"); + local req = ActiveHTTP::Request($url="127.0.0.1:32123"); when ( local resp = ActiveHTTP::request(req) ) {