Improve RPC handling and add terms/privacy methods.

This commit is contained in:
netkas 2024-12-19 17:59:50 -05:00
parent ef3b10b286
commit 014b63705b
5 changed files with 68 additions and 9 deletions

View file

@ -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();