Revert "Improve the implementation of the proxy for linux"

This reverts commit 75c3a3d1f123f00f6addf23e7bf407992c4caa26.
Revert "Fallback mechanism to connection through proxy"

This reverts commit 9811f773cedcec9492e47356b54807a80ad3962c.