-
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Allow SOCKS proxy to be supplied via http_proxy env var #3182
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding your first pull request to Stellarium. If you have questions, please do not hesitate to contact us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never used or even set up a proxy, cannot technically comment on this. If it works better than before, fine for me.
Hello @normanr! Please check the fresh version (development snapshot) of Stellarium: |
Hello @normanr! Please check the latest stable version of Stellarium: |
Description
http_proxy
(orHTTP_PROXY
) environment variable protocol is currently ignored, and the connection fails ifsocks://host:port
is supplied. This change just populatesproxyType
from the regular expression capture forproto://
, which is good enough to allow the existinguseSocksProxy
logic to work (once it's moved below the env var processing).Type of change
How Has This Been Tested?
I tested manually with
http_proxy=socks://localhost:1080 ./build/unix/src/stellarium
with and without the change. I checked that theqDebug()
log message changed appropriately and that the Satellites plugin could successfully retrieve files via the proxy.Test Configuration:
Checklist: