Skip to content
Snippets Groups Projects
Unverified Commit da3509ec authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[api] Threat server pubkey change as a crash

parent ce50f45c
Branches
Tags
No related merge requests found
......@@ -96,6 +96,9 @@ public function getJWTCustomClaims()
public function heartbeat(string $ip, int $port, string $pubkey)
{
if ($pubkey !== $this->pubkey)
$this->stop();
$this->last_heartbeat_at = Carbon::now();
$this->online = true;
$this->ip = $ip;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment