mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-14 15:27:12 +00:00
Add Chrome flag --disable-dev-shm-usage to fix crashes. resolves #45
This commit is contained in:
parent
66fe775d27
commit
8234cdb516
@ -56,7 +56,11 @@ function prepareBrowserProfile(id: string): string {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
create: async (id: string, { cookies, oneTimeSession, userAgent, headers, maxTimeout, proxy }: SessionCreateOptions): Promise<SessionsCacheItem> => {
|
create: async (id: string, { cookies, oneTimeSession, userAgent, headers, maxTimeout, proxy }: SessionCreateOptions): Promise<SessionsCacheItem> => {
|
||||||
let args = ['--no-sandbox', '--disable-setuid-sandbox'];
|
let args = [
|
||||||
|
'--no-sandbox',
|
||||||
|
'--disable-setuid-sandbox',
|
||||||
|
'--disable-dev-shm-usage' // issue #45
|
||||||
|
];
|
||||||
if (proxy && proxy.url) {
|
if (proxy && proxy.url) {
|
||||||
args.push(`--proxy-server=${proxy.url}`);
|
args.push(`--proxy-server=${proxy.url}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user