*/
public final class ChessHogScannerApp {
- public static void main(String[] args) throws ChessHogScannerException {
+ public static void main(String[] args) throws ScannerException {
- ChessHogScannerConsole.init();
+ ScannerConsole.init();
- boolean useProxy = Boolean.parseBoolean(
- ChessHogScannerProperties.get("scanner.use.proxy")
- );
+ boolean useProxy = ScannerProperties.is("scanner.use.proxy");
if (useProxy) {
ProxyParams proxyParams = new ProxyParams(
- ChessHogScannerProperties.get("scanner.proxy.server"),
- ChessHogScannerProperties.get("scanner.proxy.auth")
+ ScannerProperties.get("scanner.proxy.server"),
+ ScannerProperties.get("scanner.proxy.auth"),
+ ScannerProperties.is("scanner.proxy.system")
);
- ChessHogScannerConsole.console(proxyParams.toString());
Proxy.setProxy(proxyParams);
}