We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96e0ee2 commit 43d855cCopy full SHA for 43d855c
arduino-core/src/cc/arduino/utils/network/FileDownloader.java
@@ -145,7 +145,7 @@ public void download() throws InterruptedException {
145
if (resp == HttpURLConnection.HTTP_MOVED_PERM || resp == HttpURLConnection.HTTP_MOVED_TEMP) {
146
URL newUrl = new URL(connection.getHeaderField("Location"));
147
148
- proxy = ProxySelector.getDefault().select(newUrl.toURI()).get(0);
+ proxy = new CustomProxySelector(PreferencesData.getMap()).getProxyFor(newUrl.toURI());
149
150
// open the new connnection again
151
connection = (HttpURLConnection) newUrl.openConnection(proxy);
0 commit comments