mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-10 13:27:13 +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 {
|
||||
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) {
|
||||
args.push(`--proxy-server=${proxy.url}`);
|
||||
}
|
||||
@ -137,4 +141,4 @@ export default {
|
||||
},
|
||||
|
||||
get: (id: string): SessionsCacheItem | false => sessionCache[id] && sessionCache[id] || false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user