@gethashd/bytecave-browser 1.0.57 → 1.0.58
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.
|
@@ -6314,7 +6314,8 @@ var StorageWebTransportClient = class {
|
|
|
6314
6314
|
if (!ip || !port || !hasQuic || !hasWebTransport) {
|
|
6315
6315
|
return null;
|
|
6316
6316
|
}
|
|
6317
|
-
|
|
6317
|
+
const host = ip === "127.0.0.1" ? "localhost" : ip;
|
|
6318
|
+
return `https://${host}:${port}/storage`;
|
|
6318
6319
|
} catch (error) {
|
|
6319
6320
|
console.error("[WebTransport] Failed to parse multiaddr:", error);
|
|
6320
6321
|
return null;
|
package/dist/index.cjs
CHANGED
|
@@ -6367,7 +6367,8 @@ var StorageWebTransportClient = class {
|
|
|
6367
6367
|
if (!ip || !port || !hasQuic || !hasWebTransport) {
|
|
6368
6368
|
return null;
|
|
6369
6369
|
}
|
|
6370
|
-
|
|
6370
|
+
const host = ip === "127.0.0.1" ? "localhost" : ip;
|
|
6371
|
+
return `https://${host}:${port}/storage`;
|
|
6371
6372
|
} catch (error) {
|
|
6372
6373
|
console.error("[WebTransport] Failed to parse multiaddr:", error);
|
|
6373
6374
|
return null;
|
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
package/package.json
CHANGED
|
@@ -146,8 +146,10 @@ export class StorageWebTransportClient {
|
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
// WebTransport URL format: https://
|
|
150
|
-
|
|
149
|
+
// WebTransport URL format: https://host:port/storage
|
|
150
|
+
// Use 'localhost' instead of '127.0.0.1' for better certificate compatibility
|
|
151
|
+
const host = ip === '127.0.0.1' ? 'localhost' : ip;
|
|
152
|
+
return `https://${host}:${port}/storage`;
|
|
151
153
|
|
|
152
154
|
} catch (error) {
|
|
153
155
|
console.error('[WebTransport] Failed to parse multiaddr:', error);
|