Commit d2c386f1 authored by titanium007's avatar titanium007

hide unsafe properties

parent 1972efac
...@@ -36,6 +36,7 @@ namespace Titanium.Web.Proxy ...@@ -36,6 +36,7 @@ namespace Titanium.Web.Proxy
private static Thread listenerThread; private static Thread listenerThread;
private static bool ShouldListen { get; set; } private static bool ShouldListen { get; set; }
private static CertificateManager CertManager { get; set; }
public static List<string> ExcludedHttpsHostNameRegex = new List<string>(); public static List<string> ExcludedHttpsHostNameRegex = new List<string>();
...@@ -49,8 +50,6 @@ namespace Titanium.Web.Proxy ...@@ -49,8 +50,6 @@ namespace Titanium.Web.Proxy
public static Int32 ListeningPort { get; set; } public static Int32 ListeningPort { get; set; }
public static IPAddress ListeningIpAddress { get; set; } public static IPAddress ListeningIpAddress { get; set; }
public static CertificateManager CertManager { get; set; }
static ProxyServer() static ProxyServer()
{ {
CertManager = new CertificateManager("Titanium", CertManager = new CertificateManager("Titanium",
...@@ -58,9 +57,12 @@ namespace Titanium.Web.Proxy ...@@ -58,9 +57,12 @@ namespace Titanium.Web.Proxy
ListeningIpAddress = IPAddress.Any; ListeningIpAddress = IPAddress.Any;
ListeningPort = 0; ListeningPort = 0;
Initialize();
} }
public ProxyServer() public static void Initialize()
{ {
System.Net.ServicePointManager.Expect100Continue = false; System.Net.ServicePointManager.Expect100Continue = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment