Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit b7b7adc

Browse files
committed
format
1 parent 4843bce commit b7b7adc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
287287
CancellationToken cancellationToken)
288288
{
289289
// deny connection to proxy end points to avoid infinite connection loop.
290-
if (Server.ProxyEndPoints.Any(x => x.Port == remotePort)
290+
if (Server.ProxyEndPoints.Any(x => x.Port == remotePort)
291291
&& NetworkHelper.IsLocalIpAddress(remoteHostName))
292292
{
293293
throw new Exception($"A client is making HTTP request to one of the listening ports of this proxy {remoteHostName}:{remotePort}");
@@ -334,7 +334,7 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
334334
bool retry = true;
335335
var enabledSslProtocols = sslProtocol;
336336

337-
retry:
337+
retry:
338338
try
339339
{
340340
bool socks = externalProxy != null && externalProxy.ProxyType != ExternalProxyType.Http;
@@ -807,8 +807,7 @@ static IAsyncResult beginConnect(IPAddress address, int port, AsyncCallback requ
807807
return ((ProxySocket.ProxySocket)state).BeginConnect(address, port, requestCallback, state);
808808
}
809809

810-
static IAsyncResult beginConnect(string hostName, int port, AsyncCallback requestCallback,
811-
object state)
810+
static IAsyncResult beginConnect(string hostName, int port, AsyncCallback requestCallback, object state)
812811
{
813812
return ((ProxySocket.ProxySocket)state).BeginConnect(hostName, port, requestCallback, state);
814813
}

0 commit comments

Comments
 (0)