Skip to content

Commit

Permalink
minor changes to the client page
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Sep 19, 2024
1 parent 4e24068 commit 0cebef2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/docs/masque/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 2

## Setting up a Proxied Connection

A client needs to be configured with the same URI template as the proxy. For more information on URI templates, see the [URI Templates]({{< relref "proxy#uri-templates" >}}) section on the proxy page.
A client needs to be configured with the same URI template as the proxy. For more information on URI templates, see [URI Templates]({{< relref "proxy#uri-templates" >}}).

```go
t := uritemplate.MustNew("https://example.org:4443/masque?h={target_host}&p={target_port}")
Expand Down Expand Up @@ -37,9 +37,11 @@ if rsp.StatusCode < 200 && rsp.StatusCode > 299 {
// The response status code and body might contain more information.
return
}
// use conn to send and receive UDP packets to the target
// use conn to send and receive UDP datagrams to the target
```

Multiple UDP flows can be proxied over the same QUIC connection to the proxy by calling `DialAddr` and / or `Dial` multiple times on the same `Client`.

## 📝 Future Work

* Logging / Tracing: [#59](https://github.com/quic-go/masque-go/issues/59)
Expand Down

0 comments on commit 0cebef2

Please sign in to comment.