Fixed some bugs and updated docs

This commit is contained in:
Sambo Chea 2022-10-20 10:18:08 +07:00
parent e787b70da9
commit 42928444aa
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
3 changed files with 32 additions and 10 deletions

10
CHANGELOG.md Normal file
View File

@ -0,0 +1,10 @@
### 20/10/2022
- Upgraded packages and fixed some bugs
### Initialized
- HTTP tunnel between server and client via https link
- Custom profile (using `-p myprofile`)
- Suffix url (using `-s`)
- Config (get/set token,access,server,client,key configs)

View File

@ -13,7 +13,13 @@ npx @cubetiq/hlt
```
### Usage
### Usages
- If installed to global (bin), please using cli
```shell
hlt [command] [options]
```
- Initialize Client and Start (Quick)
@ -25,6 +31,12 @@ npx @cubetiq/hlt init
npx @cubetiq/hlt start 3000
```
# Start port 3000 with suffix to remote server
npx @cubetiq/hlt start 3000 -s mytest
````
- Initialize Client and Start (Quick with custom's profile)
```shell
@ -33,7 +45,7 @@ npx @cubetiq/hlt init -p mytest
# Start port 3000 to remote server (mytest's profile)
npx @cubetiq/hlt start 3000 -p mytest
```
````
### Custom Config
@ -49,7 +61,7 @@ npx @cubetiq/hlt config client new
npx @cubetiq/hlt config token $TOKEN
```
- Custom Server
- Set Custom Server
```shell
npx @cubetiq/hlt config server https://lt.ctdn.net

View File

@ -1,6 +1,6 @@
{
"name": "@cubetiq/hlt",
"version": "0.1.0",
"version": "0.1.1",
"description": "A lightweight http tunnel client using nodejs and socket.io client",
"main": "dist/client.js",
"bin": {