Files
smallwebwaf/script/run
T
sneak d63465d278
check / check (push) Successful in 1m46s
Header limit of 32 KiB, upstream URL checks, build and run scripts
The request line and headers are now refused above 32 KiB exactly: Go's
server reads 4 KiB past MaxHeaderBytes, so that is set to 28 KiB, and
the tests try exactly 32 KiB and one byte more. SWWAF_UPSTREAM_URL now
needs a host, and a given port must be from 1 to 65535. make build and
make run call script/build and script/run.

Model: opus-5-5
2026-10-03 14:45:44 +00:00

15 lines
292 B
Bash
Executable File

#!/bin/sh
# script/run: build bin/smallwebwaf with script/build and run it, with
# the settings in the environment.
set -eu
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
main() {
"$SCRIPT_DIR/build"
exec "$ROOT/bin/smallwebwaf"
}
main "$@"