-
Notifications
You must be signed in to change notification settings - Fork 7
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 Support for Proxy and Redirects in Updater-Script #5
Comments
Hi, thanks for the info, yeah maybe i should go back to CURL. What proxy are you using?
Do you use WGET with Change line 97 of the updater.bat
to this
|
I'm not really sure which proxy-software is used, i think it's squid-cache. For development i've added https://github.com/genotrance/px as "ntlm-proxy" running on my local machine. Because our corporate proxy needs NTLM-authentifaction (Microsoft AD) and we need to regularly change ours password. And in a lot of tools (e.g. IDEA IntelliJ) you need to manually configure the proxy (including user/pw)... And then i change my pwd, forgot to update my IntelliJ-Settings and after 3 wrong attempt my AD-Domain accout is locked and i need to submit a ticket :-(.
The -Y switch for wget is working, you have to add the "on" parameter
But then i still get a Textfile with the "HTTP/1.1 302 Found" Response instead of the Obsidian.exe There seems to be a "--max-redirect=20"-Parameter which could help, but unfortunately it isn't supported by your version of busybox :-(. I would suggest...
|
I forgot that Windows 10/11 has CURL by default, so no additions are required. CURL can only be used if |
Almost ;-) You're still using wget for obtaining the latest version. So wget needs to pick up the proxy too. For this, the variable needs to have the name "HTTP_PROXY" (with underscore). Here's my modifications... At the start:
And later on
In the default case (no proxy) the variable CURL_OPTS is empty, so it should work like before (can't test this here). In case of a proxy, the commandline is expanded, so that curl uses the proxy. |
Back to cURL, because busybox wget only supports http proxy. The http_proxy, HTTP_PROXY variables used by many apps, so I don't set it yet. In the future they can be used to separate proxies. Everything should work now, if not, try adding --insecure to cURL or set http_proxy variable again to check. |
Hi,
i've had some problems getting this to work behind a corporate proxy. Maybe you could switch to cURL (instead of wget) in the Updater-Script to fix these issues for others in the future?
Here are my changes to the Updater.bat - Script:
The text was updated successfully, but these errors were encountered: