configure proxy based on cmd line arg