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

Update websocket proxy properly when user/password used #57

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jrecuero
Copy link
Contributor

@jrecuero jrecuero commented Dec 1, 2021

When user/password is provided in the proxy
http://username:password@hostname:port
hostname and port have to be extracted properly in order to pass them to
the websocket.

jrecuero and others added 6 commits August 25, 2021 16:46
Provide new attribute when Node is created that allows to don't use
proxy for any request for that connection.
Default value is set to use proxy.
When Node is created, proxies to be used for the give connection
can be defined at this time. Any request will make use of those
proxies.
When user/password is provided in the proxy
http://username:password@hostname:port
hostname and port have to be extracted properly in order to pass them to
the websocket.
# if username:password is provided, it has to be removed in
# order to retrive host and port properly.
if "@" in proxyUrl:
proxyUrl = "http://{}".format(proxyUrl.split("@")[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we handle https correctly? This looks like we'll be forcing http irrespective of what is set in the _userProxies.

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.

2 participants