Пример #1
0
  /** change the network settings to enable use of our proxy */
  public void changeNetworkSettings() {
    if (networkService == null) {
      getCurrentNetworkSettings();
    }
    customProxyPACDir = LauncherUtils.createCustomProfileDir(sessionId);
    if (customProxyPACDir.exists()) {
      FileHandler.delete(customProxyPACDir);
    }
    customProxyPACDir.mkdir();
    log.info("Modifying OS X global network settings...");
    // TODO Disable proxy PAC URL (or, even better, use one!) SRC-364

    runNetworkSetup("-setwebproxy", networkService, "localhost", "" + port);

    runNetworkSetup("-setproxybypassdomains", networkService, "Empty");
  }
Пример #2
0
 public void setUp() {
   parentDir = LauncherUtils.createCustomProfileDir("LauncherUtilsUnitTest");
   pacFile = new File(parentDir, "proxy.pac");
 }