Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Socks5 Support #2131

Closed
wernerwernerwerner888 opened this issue May 7, 2020 · 7 comments
Closed

[Question] Socks5 Support #2131

wernerwernerwerner888 opened this issue May 7, 2020 · 7 comments
Assignees

Comments

@wernerwernerwerner888
Copy link

wernerwernerwerner888 commented May 7, 2020

Hello,

i would like to add some socks 5 for new page or newcontext and tried to do it the same way as i did in puppeteer, buts not working.

I tried to do this on both (Launch and Context, but nothing worked). Any idea how i can add an socks5?

Here is my code:

async function start() {
const browser = await firefox.launch({
headless: false,
});
const context = await browser.newContext({
args: ["--proxy-server=socks5://127.0.0.1:9955"],

@pavelfeldman
Copy link
Member

pavelfeldman commented May 7, 2020

Move the args: ["--proxy-server=socks5://127.0.0.1:9955"] into the launch parameters next to headless: false!

@wernerwernerwerner888
Copy link
Author

wernerwernerwerner888 commented May 8, 2020

Move the args: ["--proxy-server=socks5://127.0.0.1:9955"] into the launch parameters next to headless: false!

Thats what i tried thank. For Chromium the Socks setting works, for firefox and webkit not...

Any idea why?

@aslushnikov aslushnikov self-assigned this May 8, 2020
@aslushnikov
Copy link
Collaborator

The first-class proxy support should address this! It's coming in the #1914

@wernerwernerwerner888
Copy link
Author

The first-class proxy support should address this! It's coming in the #1914

thanks, thats good to hear. Is there an estimated time when the first class proxy support with be available?

@ordimans
Copy link

Can we use this with playwright ?

https://github.com/Cuadrix/puppeteer-page-proxy

@shirshak55
Copy link

@ordimans yes you can use it but it uses interceptor meaning you cannot block request anymore etc..

@pavelfeldman
Copy link
Member

New API for using proxy, including SOKCS5 has added in 1.1: doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants