allow public holesail keys

This commit is contained in:
Raven Scott
2025-12-20 17:03:20 -05:00
parent a2cdd0497d
commit 14cd0d98dd
7 changed files with 45 additions and 7 deletions
+6 -2
View File
@@ -13,7 +13,7 @@ const crypto = require('crypto');
const process = require('process');
const fs = require('fs');
const path = require('path');
const { parseMinutesToMs, parseSecondsToMs, secondsToMs, loadOrCreateKeypair, setupCache, getPersistentPublicKey } = require('../includes/infrastructure/utils');
const { parseMinutesToMs, parseSecondsToMs, secondsToMs, loadOrCreateKeypair, setupCache, getPersistentPublicKey, isSecureHolesailKey } = require('../includes/infrastructure/utils');
// ============================================================================
// Configuration
@@ -366,12 +366,16 @@ async function startHolesailClient(domain, hash, ip, persistent = false) {
startPromise = (async () => {
try {
logInfo('Holesail', `Starting Holesail client for domain: ${domain}`, { domain, hash, ip, port });
const secure = isSecureHolesailKey(hash);
logInfo('Holesail', `Creating Holesail client for ${domain} with secure=${secure} (key starts with: ${hash.substring(0, 10)}...)`);
const holesail = new Holesail({
client: true,
key: hash,
port: port,
host: ip,
secure: secure,
log: false
});