IniProperties cfg = SnovaConfiguration.getInstance()
.getIniProperties();
String listen = cfg.getProperty("LocalServer", "Listen");
SimpleSocketAddress address = HttpClientHelper
.getHttpRemoteAddress(false, listen);
servers.add(new ProxyServer(address, ProxyServerType.AUTO));
SharedObjectHelper.getTrace().info(
"Local HTTP(S) Server Listen on address " + listen);
if (C4.enable && null != cfg.getProperty("C4", "Listen"))
{
SimpleSocketAddress tmp = HttpClientHelper
.getHttpRemoteAddress(false,
cfg.getProperty("C4", "Listen"));
servers.add(new ProxyServer(tmp, ProxyServerType.C4));
SharedObjectHelper.getTrace().info(
"Local HTTP(S) Server Listen on address " + tmp);
}
if (GAE.enable && null != cfg.getProperty("GAE", "Listen"))
{
SimpleSocketAddress tmp = HttpClientHelper
.getHttpRemoteAddress(false,
cfg.getProperty("GAE", "Listen"));
servers.add(new ProxyServer(tmp, ProxyServerType.GAE));
SharedObjectHelper.getTrace().info(
"Local HTTP(S) Server Listen on address " + tmp);
}
isStarted = true;