How to determine if a proxy is in use