docker-warp-socks5/warp-health-check.sh
2024-02-13 19:14:39 +08:00

6 lines
270 B
Bash

#!/bin/sh
if [ -n "$SOCKS5_USERNAME" ]; then
curl --proxy-user $SOCKS5_USERNAME:$SOCKS5_PASSWORD -x socks5h://localhost:40000 -f -s https://www.cloudflare.com/cdn-cgi/trace
else
curl -x socks5h://localhost:40000 -f -s https://www.cloudflare.com/cdn-cgi/trace
fi