docker-warp-socks5/warp-health-check.sh

7 lines
270 B
Bash
Raw Permalink Normal View History

2024-02-13 12:14:39 +01:00
#!/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