Fixed the start port
This commit is contained in:
parent
775c5da038
commit
62db7f8145
@ -1,3 +1,7 @@
|
|||||||
|
### 14/07/2023 (1.0.8)
|
||||||
|
|
||||||
|
- Fixed the start with port unable to start
|
||||||
|
|
||||||
### 11/07/2023 (1.0.8)
|
### 11/07/2023 (1.0.8)
|
||||||
|
|
||||||
- Support tunnel with host with port
|
- Support tunnel with host with port
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cubetiq/hlt",
|
"name": "@cubetiq/hlt",
|
||||||
"version": "0.1.8",
|
"version": "0.1.9",
|
||||||
"description": "A lightweight http tunnel client using nodejs and socket.io client",
|
"description": "A lightweight http tunnel client using nodejs and socket.io client",
|
||||||
"main": "dist/cli.js",
|
"main": "dist/cli.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -305,7 +305,7 @@ class HttpTunnelClient implements Client {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (address) {
|
if (typeof address !== "number" && address && address.includes(":")) {
|
||||||
const [host, portStr] = address.split(":");
|
const [host, portStr] = address.split(":");
|
||||||
if (host) {
|
if (host) {
|
||||||
options.host = host;
|
options.host = host;
|
||||||
@ -321,6 +321,7 @@ class HttpTunnelClient implements Client {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
options.port = port;
|
options.port = port;
|
||||||
|
console.log(`default port: ${port} will be forwared`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user