@hive-p2p/server 1.0.105 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/node.mjs +1 -1
- package/package.json +1 -1
- package/services/clock.mjs +1 -1
package/core/node.mjs
CHANGED
|
@@ -31,7 +31,7 @@ export async function createPublicNode(options = {}) {
|
|
|
31
31
|
const clockSync = CLOCK.sync(verbose);
|
|
32
32
|
if (!codex.publicKey) await codex.generate(domain ? true : false);
|
|
33
33
|
|
|
34
|
-
await clockSync;
|
|
34
|
+
if (options.autoStart !== false) await clockSync;
|
|
35
35
|
const node = new Node(codex, options.bootstraps || [], verbose);
|
|
36
36
|
node.services = new NodeServices(codex, node.peerStore, undefined, verbose);
|
|
37
37
|
node.services.start(domain, options.port || SERVICE.PORT);
|
package/package.json
CHANGED
package/services/clock.mjs
CHANGED
|
@@ -73,7 +73,7 @@ export class Clock {
|
|
|
73
73
|
// PRIVATE METHODS
|
|
74
74
|
async #fetchTimeSamples() { // Fetch time samples from all sources in parallel
|
|
75
75
|
if (this.proxyUrl) {
|
|
76
|
-
//
|
|
76
|
+
// Proxy mode: fetch from proxy instead of NTP sources
|
|
77
77
|
const sample = await this.#fetchTimeFromProxy();
|
|
78
78
|
return sample ? [sample] : [];
|
|
79
79
|
}
|