check / check (push) Successful in 1m46s
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
19 lines
534 B
Python
Executable File
19 lines
534 B
Python
Executable File
#!/bin/sh
|
|
# script/build: build bin/smallwebwaf on the host, with Go installed, for
|
|
# working on the code by hand. The version it reports comes from git, as
|
|
# in script/docker.
|
|
set -eu
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
|
|
ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
version="$(git describe --tags --always --dirty 2>/dev/null || true)"
|
|
[ -n "$version" ] || version="unknown"
|
|
go build -trimpath -ldflags "-X main.Version=$version" \
|
|
-o bin/smallwebwaf ./cmd/smallwebwaf
|
|
}
|
|
|
|
main "$@"
|