Normalize server input to lowercase in RpcClient constructor
This commit is contained in:
parent
dff25f31ba
commit
fb31c3cc6a
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@
|
||||||
public function __construct(string|PeerAddress $identifiedAs, ?string $server=null, ?ExportedSession $exportedSession=null)
|
public function __construct(string|PeerAddress $identifiedAs, ?string $server=null, ?ExportedSession $exportedSession=null)
|
||||||
{
|
{
|
||||||
$this->logger = new \LogLib2\Logger('net.nosial.socialbox');
|
$this->logger = new \LogLib2\Logger('net.nosial.socialbox');
|
||||||
|
if($server !== null)
|
||||||
|
{
|
||||||
|
$server = strtolower($server);
|
||||||
|
}
|
||||||
|
|
||||||
// If an exported session is provided, no need to re-connect.
|
// If an exported session is provided, no need to re-connect.
|
||||||
// Just use the session details provided.
|
// Just use the session details provided.
|
||||||
|
|
Loading…
Add table
Reference in a new issue