@dpkrn/nodetunnel 1.0.4 → 1.0.6

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.
@@ -155,7 +155,7 @@ class Tunnel {
155
155
  */
156
156
  constructor(localPort, options = {}) {
157
157
  this.localPort = localPort;
158
- this.serverHost = options.host ?? 'localhost';
158
+ this.serverHost = options.host ?? 'clickly.cv';
159
159
  this.serverPort = options.serverPort ?? 9000;
160
160
  /** @type {import('net').Socket | null} */
161
161
  this.socket = null;
@@ -181,7 +181,7 @@ class Tunnel {
181
181
  });
182
182
 
183
183
  const { line, remainder } = await readPublicUrlLine(socket);
184
- this.publicUrl = `http://${line}`;
184
+ this.publicUrl = `${line}`;
185
185
 
186
186
  const session = new Session(true, defaultMuxConfig, (stream) => {
187
187
  handleStream(stream, this.localPort);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpkrn/nodetunnel",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Expose a local HTTP server through a devtunnel/gotunnel-compatible server (yamux + JSON). Node.js 18+.",
5
5
  "keywords": [
6
6
  "tunnel",