Skip to content

Commit 89e7563

Browse files
committed
Socks Proxy now supported if put in preference.txt
1 parent 2e7af80 commit 89e7563

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/src/processing/app/Preferences.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ static public void init() {
154154
System.setProperty("http.proxyHost", proxyHost);
155155
System.setProperty("http.proxyPort", proxyPort);
156156
}
157+
String socksProxyHost = get("socksProxy.host");
158+
String socksProxyPort = get("socksProxy.port");
159+
if (socksProxyHost != null && socksProxyHost.length() != 0 && socksProxyPort != null
160+
&& socksProxyPort.length() != 0) {
161+
System.setProperty("socksProxyHost", socksProxyHost);
162+
System.setProperty("socksProxyPort", socksProxyPort);
163+
}
157164
}
158165

159166

0 commit comments

Comments
 (0)