Set proxy detection timeout to 2 seconds

The patch lowers the proxy detection timeout to 2 seconds down from the nc default of ~30 seconds. This prevents long waits if the primary proxy is not available.