{ "name": "bore", "version": "0.6.0", "summary": "bore: exposes a local TCP port through a bore server you run yourself, with an optional shared secret (Rust)", "category": "network", "license": "MIT", "homepage": "https://github.com/ekzhang/bore", "source": { "url": "https://github.com/ekzhang/bore/archive/refs/tags/v0.6.0.tar.gz", "sha256": "ab3175a6f304c7efdcacd0f6a0e4950f49eb31cb2a3ae9b4928c97ed8d03861c" }, "watch": {"kind": "github-release", "repo": "ekzhang/bore", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": true, "check": "bin/bore --version | has -x 'bore-cli 0.6.0' && t=$(mktemp -d) && echo bvs-bore-page > \"$t/index.html\" && W=$(free_port) && { python3 -m http.server -b 127.0.0.1 -d \"$t\" \"$W\" > /dev/null 2>&1 < /dev/null & echo $! > \"$t/web\"; } && wait_port \"$W\" && { bin/bore server --bind-addr 127.0.0.1 --secret bvs-secret > \"$t/srv\" 2>&1 < /dev/null & echo $! > \"$t/srvpid\"; } && wait_port 7835 && R=$(free_port) && { bin/bore local \"$W\" --local-host 127.0.0.1 --to 127.0.0.1 --port \"$R\" --secret bvs-secret > \"$t/cli\" 2>&1 < /dev/null & echo $! > \"$t/clipid\"; } && wait_port \"$R\" && [ \"$(python3 -c 'import sys, urllib.request; print(urllib.request.urlopen(sys.argv[1]).read().decode().strip())' \"http://127.0.0.1:$R/index.html\")\" = bvs-bore-page ] && ! timeout 10 bin/bore local \"$W\" --local-host 127.0.0.1 --to 127.0.0.1 --secret wrong-secret > \"$t/bad\" 2>&1 < /dev/null && has -i 'secret\\|auth' < \"$t/bad\" && echo \"bore 0.6.0: a local web page reached through a bore server and client on 127.0.0.1 (control port 7835, tunnel port $R) with a shared secret; a wrong secret refused\"; r=$?; for p in clipid srvpid web; do [ -f \"$t/$p\" ] && kill \"$(cat \"$t/$p\")\" 2>/dev/null; done; [ $r = 0 ] || cat \"$t/cli\" \"$t/srv\" \"$t/bad\" >&2; exit $r" }