Last active
December 8, 2015 09:27
-
-
Save barlog-m/ae41a62fa54f3b6f7e64 to your computer and use it in GitHub Desktop.
Enable Proxy for all connections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void enableProxy() { | |
System.setProperty("http.proxySet", "true"); | |
System.setProperty("http.proxy", "localhost"); // JavaFX WebView | |
System.setProperty("http.proxyHost", "localhost"); | |
System.setProperty("http.proxyPort", "8080"); | |
System.setProperty("https.proxySet", "true"); | |
System.setProperty("https.proxy", "localhost"); // JavaFX WebView | |
System.setProperty("https.proxyHost", "localhost"); | |
System.setProperty("https.proxyPort", "8080"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment