Skip to content

Commit

Permalink
README: Clarify that the host HTTP API is not always there
Browse files Browse the repository at this point in the history
It's only accessible over the endpoints configured with `--listen` when
`gvproxy` is started.

Signed-off-by: Christophe Fergeau <[email protected]>
  • Loading branch information
cfergeau committed Apr 8, 2024
1 parent 432f418 commit 0a82795
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ With the executable:

### API

The executable running on the host, `gvproxy`, exposes a HTTP API. It can be used with curl.
When `gvproxy` is started with the `--listen` option, it exposes a HTTP API on the host.
This API can be used with curl.

```
$ gvproxy --listen unix:///tmp/network.sock .... &
$ curl --unix-socket /tmp/network.sock http:/unix/stats
{
"BytesSent": 0,
Expand All @@ -140,7 +143,8 @@ nameserver 192.168.127.1

### Port forwarding

Dynamic port forwarding is supported.
Dynamic port forwarding is supported over the host HTTP API when `gvproxy` was
started with `--listen`, but also in the VM over http://192.168.127.1:80.

Expose a port:
```
Expand Down

0 comments on commit 0a82795

Please sign in to comment.