Unverified Commit 2bc1d129 authored by mohammadlachgar's avatar mohammadlachgar Committed by GitHub

Delete spaces and new lines(entr)

parent 3adf9856
...@@ -407,12 +407,11 @@ namespace Titanium.Web.Proxy ...@@ -407,12 +407,11 @@ namespace Titanium.Web.Proxy
/// <param name="endPoint"></param> /// <param name="endPoint"></param>
public void AddEndPoint(ProxyEndPoint endPoint) public void AddEndPoint(ProxyEndPoint endPoint)
{ {
if (ProxyEndPoints.Any(x => x.IpAddress.Equals(endPoint.IpAddress) && endPoint.Port != 0 && x.Port == endPoint.Port)) if (ProxyEndPoints.Any(x => x.IpAddress.Equals(endPoint.IpAddress) && endPoint.Port != 0 && x.Port == endPoint.Port))
{ {
throw new Exception("Cannot add another endpoint to same port & ip address"); throw new Exception("Cannot add another endpoint to same port & ip address");
} }
ProxyEndPoints.Add(endPoint); ProxyEndPoints.Add(endPoint);
if (ProxyRunning) if (ProxyRunning)
...@@ -785,7 +784,6 @@ namespace Titanium.Web.Proxy ...@@ -785,7 +784,6 @@ namespace Titanium.Web.Proxy
{ {
if (!CertificateManager.CertValidated) if (!CertificateManager.CertValidated)
{ {
CertificateManager.CreateTrustedRootCertificate(); CertificateManager.CreateTrustedRootCertificate();
if (TrustRootCertificate) if (TrustRootCertificate)
...@@ -793,7 +791,7 @@ namespace Titanium.Web.Proxy ...@@ -793,7 +791,7 @@ namespace Titanium.Web.Proxy
CertificateManager.TrustRootCertificate(); CertificateManager.TrustRootCertificate();
} }
} }
} }
/// <summary> /// <summary>
/// When a connection is received from client act /// When a connection is received from client act
......
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