I can set app specific properties with NSUserDefaults
, but not System Properties such as proxxy/port.
Her'e how I do it in Java. How can I do this with Swift 2?
// Set proxy/port in system properties
System.setProperty("http.proxyHost", "12.345.67.89");
System.setProperty("http.proxyPort", "1234");
System.setProperty("java.net.useSystemProxies", "true");
// Authenticate
System.setProperty("http.proxyUser", "someusername");
System.setProperty("http.proxyPassword", "somepassword");
System.setProperty("http.proxySet", "true");