-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Doesn't work with SOCKS proxy #1769
Comments
Hi @wh201906. Thanks for your report. I was not able to reproduce it. The instructions you provided are too vague for me to be sure I am correctly reproducing what you have done. Please provide a set of very detailed and clear instructions that I can follow for a minimal reproduction of the bug and I will continue with the investigation. |
Thanks so much for that additional information @wh201906. That was very helpful. I was able to reproduce the bugs you reported here and track down the cause of the primary bug: SOCKS Proxy Doesn't Work
ExplanationIt is actually a bug in Arduino IDE that is causing all these symptoms. The problem is it uses the https://pkg.go.dev/net/http#Transport I was not able to track down the code responsible for the behavior, but it seems that HTTP is used as a fallback when the scheme in the proxy URL is not recognized. This is why you found the HTTP proxy works even when you set the radio button to "SOCKS" in the Arduino IDE preferences and it sets the Workaround
Proxy Configuration Set by Arduino IDE not Shown in
|
Thanks for handling these bugs! |
@per1234 Hi. Can I make a PR to make a fix for it? |
Yes, a PR would be welcome! |
Describe the problem
I have a SOCKS proxy on port
1233
and a http proxy on port1234
. No matter which proxy type I select in Arduino IDE(SOCKS
orHTTP
), if I set the port to1234
, everything works fine, if I set the port to1233
, the network error occurs. It seems like the Arduino always uses the http proxy regardless of the proxy type I selected.Plus, If I configure a http proxy in settings, it will be shown as SOCKS proxy the next time I open the Arduino IDE. But the
arduino-cli.yaml
still shows that it's a http proxy.To reproduce
n
and a http proxy on portn+1
n
, the network error occurs (which shows the problem)n+1
, the network works finen+1
, the network works fine (which is unexpected)n
, the network error occursExpected behavior
The SOCKS proxy should work.
Arduino IDE version
Version: 2.0.3 Date: 2022-12-05T09:30:25.331Z CLI Version: 0.29.0 [76251df9] Copyright © 2022 Arduino SA
Operating system
Windows
Operating system version
Windows 10
Additional context
I have checked the proxy and I'm sure port
1233
only accepts SOCKS and1234
only accepts http.Both of proxy work in other apps.
Issue checklist
The text was updated successfully, but these errors were encountered: