Improve RPC handling and add terms/privacy methods.
This commit is contained in:
parent
ef3b10b286
commit
014b63705b
5 changed files with 68 additions and 9 deletions
|
@ -76,6 +76,11 @@
|
|||
$this->serverPublicKey = $resolvedServer->getPublicKey();
|
||||
$this->rpcEndpoint = $resolvedServer->getEndpoint();
|
||||
|
||||
if(empty($this->serverPublicKey))
|
||||
{
|
||||
throw new ResolutionException('Failed to resolve domain: No public key found for the server');
|
||||
}
|
||||
|
||||
// Attempt to create an encrypted session with the server
|
||||
$this->sessionUuid = $this->createSession();
|
||||
$this->sendDheExchange();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue