@karthik_yk/ws-tunnel-cli 1.0.1 → 1.0.2

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": "@karthik_yk/ws-tunnel-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "websocket tunnel cli",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/httpClient.js CHANGED
@@ -48,14 +48,6 @@ export function createHttpTunnel(localPort, remoteHost) {
48
48
 
49
49
  function getPublicUrl(remoteHost, id) {
50
50
  const { protocol, host } = new URL(remoteHost.replace("ws", "http"));
51
-
52
- // Local dev → path based
53
- if (host.startsWith("localhost") || host.startsWith("127.")) {
54
- return `${protocol}//${host}/tunnel/${id}`;
55
- }
56
-
57
- // Production (Render) → subdomain based
58
- // return `${protocol}//${id}.${host}`;
59
51
  return `${protocol}//${host}/tunnel/${id}`
60
52
  }
61
53