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

Provide possibility of configuring an HTTP proxy for the Adapter/Session objects #19

Open
arthurzenika opened this issue Mar 16, 2023 · 1 comment

Comments

@arthurzenika
Copy link

When using pypowervm on an API that is behind a http proxy, it would be nice to be able to configure a proxy when creating an Session or Adapter object.

This could be set as an argument when creating Session object https://github.com/powervm/pypowervm/blob/master/pypowervm/adapter.py#L64-L68

@arthurzenika
Copy link
Author

As a bad workaround for the moment I am using socket and sock configuration :

import socket
import socks
# example for a socks5 proxy on localhost and port 8123
socks.set_default_proxy(socks.SOCKS5, "localhost", 8123)
socket.socket = socks.socksocket

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

1 participant