Compare commits

...

1 Commits

Author SHA1 Message Date
Amaury M
8ce254c7ad fix(core): No sandbox for headless chrome 2022-08-30 14:59:16 +02:00
2 changed files with 9 additions and 4 deletions

View File

@ -37,8 +37,8 @@ USER reacher
ENV RUST_LOG=reacher=info
ENV RCH_HTTP_HOST=0.0.0.0
ENV PORT=8080
# Using a headless navigator to verify Hotmail emails is disabled. Set to 1 to enable it.
ENV RCH_HOTMAIL_USE_HEADLESS=0
# Use a headless navigator to verify Hotmail emails is disabled. Set to 0 to disable it.
ENV RCH_HOTMAIL_USE_HEADLESS=1
# Bulk verification is disabled by default. Set to 1 to enable it.
ENV RCH_ENABLE_BULK=0

View File

@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use async_smtp::EmailAddress;
use headless_chrome::Browser;
use headless_chrome::{Browser, LaunchOptionsBuilder};
use serde::Serialize;
use super::SmtpDetails;
@ -40,7 +40,12 @@ pub fn check_password_recovery(to_email: &EmailAddress) -> Result<SmtpDetails, H
"[email={}] Using Hotmail password recovery in headless navigator",
to_email,
);
let browser = Browser::default()?;
let options = LaunchOptionsBuilder::default()
.window_size(Some((1800, 1500)))
.sandbox(false)
.build()
.unwrap();
let browser = Browser::new(options)?;
let tab = browser.wait_for_initial_tab()?;
let to_email = to_email.to_string();