shogun-core 3.0.3 → 3.0.5
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.
|
@@ -91320,6 +91320,12 @@ class CoreInitializer {
|
|
|
91320
91320
|
console.log("Applying peers configuration:", config.gunOptions.peers);
|
|
91321
91321
|
this.core._gun.opt({ peers: config.gunOptions.peers });
|
|
91322
91322
|
console.log("Peers after explicit application:", this.core._gun?.opt?.peers);
|
|
91323
|
+
// Force peer connection
|
|
91324
|
+
console.log("Forcing peer connections...");
|
|
91325
|
+
config.gunOptions.peers.forEach((peer) => {
|
|
91326
|
+
console.log("Connecting to peer:", peer);
|
|
91327
|
+
this.core._gun.opt({ peers: [peer] });
|
|
91328
|
+
});
|
|
91323
91329
|
}
|
|
91324
91330
|
}
|
|
91325
91331
|
}
|