Skip to content

Commit 1c0ad77

Browse files
committed
Fix the whitelist to verify against remote IP
1 parent c9feecb commit 1c0ad77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Blockcore/P2P/Peer/NetworkPeerServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private NetworkPeerConnectionParameters CreateNetworkPeerConnectionParameters()
237237

238238
var clientLocalEndPoint = tcpClient.Client.LocalEndPoint as IPEndPoint;
239239

240-
bool endpointCanBeWhiteListed = this.connectionManagerSettings.Whitelist.Any(x => x.MatchIpOnly(clientLocalEndPoint));
240+
bool endpointCanBeWhiteListed = this.connectionManagerSettings.Whitelist.Any(x => x.MatchIpOnly(clientRemoteEndPoint));
241241

242242
if (endpointCanBeWhiteListed)
243243
{

0 commit comments

Comments
 (0)