@hive-p2p/server 1.0.26 → 1.0.28

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.
@@ -122,7 +122,8 @@ export class NodeServices {
122
122
  /** @type {Array<{urls: string}>} */
123
123
  const stunUrls = [];
124
124
  for (const b of bootstraps) {
125
- const domain = b.split(':')[1].replace('//', '');
125
+ const domain = b.includes(':') ? b.split(':')[1].replace('//', '') : b;
126
+ domain.replace('/ws', '/signal'); // in case someone put domain/ws
126
127
  const port = parseInt(b.split(':')[2]) + 1;
127
128
  stunUrls.push({ urls: `stun:${domain}:${port}` });
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-p2p/server",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },