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

Commit e4527c0

Browse files
committed
fox for #716
1 parent d99d541 commit e4527c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
385385
tcpServerSocket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp);
386386
}
387387

388+
if (upStreamEndPoint != null)
389+
{
390+
tcpServerSocket.Bind(upStreamEndPoint);
391+
}
392+
388393
tcpServerSocket.NoDelay = proxyServer.NoDelay;
389394
tcpServerSocket.ReceiveTimeout = proxyServer.ConnectionTimeOutSeconds * 1000;
390395
tcpServerSocket.SendTimeout = proxyServer.ConnectionTimeOutSeconds * 1000;

0 commit comments

Comments
 (0)