Add peer resolution through the resolvePeer
method
This commit is contained in:
parent
fde3ccfc68
commit
62c8d332a9
6 changed files with 129 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue