added lifetime to client route
This commit is contained in:
25
README.md
25
README.md
@ -1,7 +1,7 @@
|
||||
|
||||
## normal operation
|
||||
- ./hodu server --listen-on=0.0.0.0:9999 --listen-on=0.0.0.0:8888
|
||||
- ./hodu client --listen-on=127.0.0.1:7777 --server=127.0.0.1:9999 192.168.1.130:8000
|
||||
- ./hodu server --rcp-on=0.0.0.0:9999 --ctl-on=0.0.0.0:8888 --pxy-on=0.0.0.0:9998 --wpx-on=0.0.0.0:9997
|
||||
- ./hodu client --rpc-to=127.0.0.1:9999 --ctl-on=127.0.0.1:7777 192.168.1.130:8000
|
||||
|
||||
## server.json
|
||||
```
|
||||
@ -14,8 +14,27 @@
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## client control channel
|
||||
|
||||
|
||||
### Add a new route
|
||||
|
||||
|
||||
`clinet-route.json` contains the following text:
|
||||
|
||||
```
|
||||
curl -X POST --data-binary @server.json http://127.0.0.1:7777/servers
|
||||
{
|
||||
"client-peer-addr": "192.168.1.104:22",
|
||||
"client-peer-name": "Star gate",
|
||||
"server-peer-option": "tcp4 ssh",
|
||||
"server-peer-service-addr": "0.0.0.0:0",
|
||||
"server-peer-service-net": "",
|
||||
"lifetime": "0s"
|
||||
}
|
||||
```
|
||||
|
||||
Run this command:
|
||||
```
|
||||
curl -X POST --data-binary @client-route.json http://127.0.0.1:7777/_ctl/client-conns/0/routes
|
||||
```
|
||||
|
Reference in New Issue
Block a user