Skip to content

Commit

Permalink
UPDATE PROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
dev01111 authored Jun 21, 2022
1 parent fa8eef0 commit 709d868
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/src/processing/app/SingleInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
package processing.app;

import java.awt.EventQueue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.io.*;
import java.util.*;

import processing.core.PApplet;
import processing.app.ui.Toolkit;
import processing.core.*;


/**
Expand Down Expand Up @@ -120,6 +120,9 @@ public void run() {


static boolean sendArguments(String[] args) { //, long timeout) {
System.clearProperty("http.proxyHost");
System.clearProperty("https.proxyHost");
System.clearProperty("socksProxyHost");
try {
Messages.log("Checking to see if Processing is already running");
int port = Preferences.getInteger(SERVER_PORT);
Expand Down Expand Up @@ -147,4 +150,7 @@ static boolean sendArguments(String[] args) { //, long timeout) {
Messages.log("Processing is not already running (or could not connect)");
return false;
}
handleProxy("http", "http.proxyHost", "http.proxyPort");
handleProxy("https", "https.proxyHost", "https.proxyPort");
handleProxy("socks", "socksProxyHost", "socksProxyPort");
}

0 comments on commit 709d868

Please sign in to comment.