diff --git a/regress/lib.sh b/regress/lib.sh index 572595b..8cd41d1 100644 --- a/regress/lib.sh +++ b/regress/lib.sh @@ -11,6 +11,7 @@ gghost= run_test() { ggflags= + host="$REGRESS_HOST" port=10965 config_common="log syslog off" hdr= @@ -67,7 +68,7 @@ server "$server_name" { cert "$PWD/localhost.pem" key "$PWD/localhost.key" root "$PWD/testdata" - listen on $REGRESS_HOST port $port + listen on $host port $port $2 } EOF @@ -82,7 +83,7 @@ set_proxy() { server "localhost.local" { cert "$PWD/localhost.pem" key "$PWD/localhost.key" - listen on $REGRESS_HOST port $port + listen on $host port $port proxy { relay-to localhost port $port $1 diff --git a/regress/tests.sh b/regress/tests.sh index b5f62e0..f06fdf2 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -322,7 +322,7 @@ server "localhost" { cert \$pwd "/localhost.pem" key \$pwd "/localhost.key" root \$pwd "/testdata" - listen on $REGRESS_HOST port $port + listen on $host port $port @common } EOF @@ -433,6 +433,7 @@ log style legacy' test_ip_addr() { server_name="*" + host="127.0.0.1" gghost=127.0.0.1 ggflags=-N setup_simple_test