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

Add proxy support #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

doifweoaiv
Copy link

No description provided.

@@ -386,10 +386,12 @@ async function setupPage(ctx: RequestContext, params: BaseRequestAPICall, browse
const browserRequest = async (ctx: RequestContext, params: BaseRequestAPICall) => {
const oneTimeSession = params.session === undefined
const sessionId = params.session || UUIDv1()
const proxy = params.proxy;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off the top of my head, I feel like this is more complicated than this... Have you tested this thoroughly?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic behind it was added already. I just made it pass the proxy to the session

@NoahCardoza
Copy link
Owner

Will think work with this line here? Sorry, I don't have much time for testing right now.

await page.authenticate({ username: proxy.username, password: proxy.password });

@doifweoaiv
Copy link
Author

Will think work with this line here? Sorry, I don't have much time for testing right now.

await page.authenticate({ username: proxy.username, password: proxy.password });

It should, as far as I remember

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

Successfully merging this pull request may close these issues.

None yet

2 participants