allow public holesail keys
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user