a2acalling 0.6.32 → 0.6.33

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": "a2acalling",
3
- "version": "0.6.32",
3
+ "version": "0.6.33",
4
4
  "description": "Agent-to-agent calling for OpenClaw - A2A agent communication",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/lib/client.js CHANGED
@@ -42,9 +42,9 @@ function resolveProtocolAndPort(host) {
42
42
  hostname === '::1' ||
43
43
  hostname.startsWith('127.');
44
44
 
45
- const port = hasExplicitPort ? parsed.port : (isLocalhost ? 80 : 443);
45
+ const port = hasExplicitPort ? parsed.port : 80;
46
46
  // Use HTTP for localhost or explicit non-443 ports, HTTPS otherwise.
47
- const useHttp = isLocalhost || (hasExplicitPort && port !== 443);
47
+ const useHttp = isLocalhost || port === 80 || (hasExplicitPort && port !== 443);
48
48
  const protocol = useHttp ? http : https;
49
49
 
50
50
  return { protocol, hostname, port };