pubkey testing

This commit is contained in:
2026-08-18 22:52:42 +02:00
parent 680794d275
commit c3d75e68f4
+8
View File
@@ -61,6 +61,14 @@ export default class Enclave {
return; return;
} }
if (
this.serverList[hostname]?.publicKey !==
base58.encode(this.server.serverPublicKey)
) {
console.error("Server's new public key doesn't match old one");
return;
}
const metaResponse = await axios.get( const metaResponse = await axios.get(
getHTTPUrl(hostname, isSecure, "/meta"), getHTTPUrl(hostname, isSecure, "/meta"),
); );