Add peer resolution through the resolvePeer method

This commit is contained in:
netkas 2025-01-10 15:16:02 -05:00
parent fde3ccfc68
commit 62c8d332a9
6 changed files with 129 additions and 6 deletions

View file

@ -165,6 +165,13 @@
$username = $address->getUsername();
$statement->bindParam(1, $username);
$server = $address->getDomain();
// Convert to 'host' if the domain is the same as the server's host
if($server === Configuration::getInstanceConfiguration()->getDomain())
{
$server = 'host';
}
$statement->bindParam(2, $server);
$statement->execute();