Check Methods
Check Methods
Xray Checker supports three methods for verifying proxy functionality:
IP Check Method (Default)
--proxy-check-method=ipThis method:
- Gets current IP without proxy
- Connects through proxy
- Gets IP through proxy
- Compares IPs to verify proxy is working
Benefits:
- More reliable verification
- Confirms actual proxy functionality
- Detects transparent proxies
Configuration:
PROXY_CHECK_METHOD=ipPROXY_IP_CHECK_URL=https://api.ipify.org?format=textPROXY_TIMEOUT=30Status Check Method
--proxy-check-method=statusThis method:
- Connects through proxy
- Requests specified URL
- Verifies response status code
Benefits:
- Faster verification
- Lower bandwidth usage
- Works with restrictive firewalls
Configuration:
PROXY_CHECK_METHOD=statusPROXY_STATUS_CHECK_URL=http://cp.cloudflare.com/generate_204PROXY_TIMEOUT=30Download Check Method
--proxy-check-method=downloadThis method:
- Connects through proxy
- Downloads a specified file
- Verifies download completion or minimum size threshold
Benefits:
- Tests actual data transfer through proxy
- Verifies proxy performance with real file downloads
- Configurable success criteria (minimum download size)
- Single-threaded download in one TCP connection
Configuration:
PROXY_CHECK_METHOD=downloadPROXY_DOWNLOAD_URL=https://proof.ovh.net/files/1Mb.datPROXY_DOWNLOAD_TIMEOUT=60PROXY_DOWNLOAD_MIN_SIZE=51200The check is considered successful if:
- The file is completely downloaded, OR
- At least the minimum specified bytes are downloaded
This method is ideal for testing proxy performance with actual file transfers and ensuring the proxy can handle sustained data connections.