2024-11-12 13:59:37 +00:00
|
|
|
|
2024-11-23 05:49:04 +00:00
|
|
|
## 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
|
2024-11-19 15:31:14 +00:00
|
|
|
|
|
|
|
## server.json
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"server-addr": "127.0.0.1:9999",
|
|
|
|
"peer-addrs": [
|
|
|
|
"127.0.0.1:22",
|
|
|
|
"127.0.0.1:80"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-11-23 05:49:04 +00:00
|
|
|
## client control channel
|
|
|
|
|
2024-11-19 15:31:14 +00:00
|
|
|
```
|
|
|
|
curl -X POST --data-binary @server.json http://127.0.0.1:7777/servers
|
|
|
|
```
|