代理设置

try
{
int.Parse(CNN.config("network.proxy.http_port"));
System.Net.IPAddress.Parse(CNN.config("network.proxy.http"));
Gecko.GeckoPreferences.User["network.proxy.http"] = CNN.config("network.proxy.http");
Gecko.GeckoPreferences.User["network.proxy.http_port"] = CNN.intConfig("network.proxy.http_port");
Gecko.GeckoPreferences.User["network.proxy.type"] = 1;
Gecko.GeckoPreferences.User["network.proxy.ssl"] = CNN.config("network.proxy.http");
Gecko.GeckoPreferences.User["network.proxy.ssl_port"] = CNN.intConfig("network.proxy.http_port");
}
catch
{
}