{ "name": "rathole", "version": "0.5.0", "summary": "rathole: exposes services behind NAT through a server you run yourself, over TCP, Noise, TLS or WebSocket (Rust)", "category": "network", "license": "Apache-2.0", "homepage": "https://github.com/rathole-org/rathole", "source": { "url": "https://github.com/rathole-org/rathole/archive/refs/tags/v0.5.0.tar.gz", "sha256": "c8698dc507c4c2f7e0032be24cac42dd6656ac1c52269875d17957001aa2de41" }, "watch": {"kind": "github-release", "repo": "rathole-org/rathole", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [ "openssl" ], "env_packages": [], "static": true, "nss": true, "check": "bin/rathole --version | has '^Build Version: *0.5.0$' && bin/rathole --version | has '^cargo Features:.*noise.*,tls,' && t=$(mktemp -d) && echo bvs-rathole-page > \"$t/index.html\" && W=$(free_port) && C=$(free_port) && R=$(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/rathole --genkey > \"$t/keys\" && K=$(sed -n 2p \"$t/keys\") && P=$(sed -n 5p \"$t/keys\") && [ -n \"$K\" ] && [ -n \"$P\" ] && printf '[server]\\nbind_addr = \"127.0.0.1:%s\"\\n[server.transport]\\ntype = \"noise\"\\n[server.transport.noise]\\nlocal_private_key = \"%s\"\\n[server.services.web]\\ntoken = \"bvs-token\"\\nbind_addr = \"127.0.0.1:%s\"\\n' \"$C\" \"$K\" \"$R\" > \"$t/server.toml\" && printf '[client]\\nremote_addr = \"127.0.0.1:%s\"\\n[client.transport]\\ntype = \"noise\"\\n[client.transport.noise]\\nremote_public_key = \"%s\"\\n[client.services.web]\\ntoken = \"bvs-token\"\\nlocal_addr = \"127.0.0.1:%s\"\\n' \"$C\" \"$P\" \"$W\" > \"$t/client.toml\" && { bin/rathole -s \"$t/server.toml\" > \"$t/srv\" 2>&1 < /dev/null & echo $! > \"$t/srvpid\"; } && wait_port \"$C\" && { bin/rathole -c \"$t/client.toml\" > \"$t/cli\" 2>&1 < /dev/null & echo $! > \"$t/clipid\"; } && wait_port \"$R\" && sleep 1 && [ \"$(python3 -c 'import sys, urllib.request; print(urllib.request.urlopen(sys.argv[1], timeout=10).read().decode().strip())' \"http://127.0.0.1:$R/index.html\")\" = bvs-rathole-page ] && echo \"rathole 0.5.0: a local web page reached through a rathole server and client over the Noise transport with a key pair from --genkey and a service token (control port $C, service port $R)\"; r=$?; for p in clipid srvpid web; do [ -f \"$t/$p\" ] && kill \"$(cat \"$t/$p\")\" 2>/dev/null; done; [ $r = 0 ] || cat \"$t/srv\" \"$t/cli\" >&2; exit $r" }