godprotocol 2.2.87 → 2.2.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.2.87",
3
+ "version": "2.2.88",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -174,10 +174,16 @@ class Headers extends Services {
174
174
  headers["authorization"] = `Bearer ${authorization}`;
175
175
  }
176
176
 
177
+ // Light patch for emulator support
178
+ let hst = request.headers.host;
179
+ if (hst.startsWith("10.0.2.2")) {
180
+ hst = hst.replace("10.0.2.2", "localhost");
181
+ }
182
+
177
183
  let third_party =
178
- xplatform !== this.platform_uri &&
179
- !gp_services.profile.endsWith(request.headers.host);
180
- if (gp_services.profile.endsWith(request.headers.host)) {
184
+ xplatform !== this.platform_uri && !gp_services.profile.endsWith(hst);
185
+
186
+ if (gp_services.profile.endsWith(hst)) {
181
187
  headers["x-platform"] = xplatform;
182
188
  }
183
189