Fix incorrect method call for retrieving peer address in EncryptionAcceptChannel

This commit is contained in:
netkas 2025-03-04 13:41:07 -05:00
parent 8dde6fed13
commit e142add843

View file

@ -183,7 +183,7 @@
{
return $rpcRequest->produceError(StandardError::NOT_FOUND, 'The requested encryption channel was not found');
}
elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getAddress())
elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getPeerAddress())
{
return $rpcRequest->produceError(StandardError::UNAUTHORIZED, 'The requested encryption channel is not accessible');
}