Skip to content

Commit

Permalink
format readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ainghazal committed Apr 22, 2024
1 parent 0b81415 commit e837def
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,18 @@ A minimal report is a json containing only three mandatory fields:
* `endpoint`: **MUST** be the endpoint that the client attempted to connect to, in the format `protocol://ip_address:port`.

```bash
curl -X POST \
$ cat report.json
{
"report-type": "tunnel-telemetry",
"time": "2024-04-12T00:00:00Z",
"endpoint": "ss://1.1.1.1:443",
"config": {"prefix": "xx"}
}

$ curl -X POST \
-H 'Content-Type: application/json' \
-H 'X-Forwarded-For: 2.3.4.5' \
-d '{"report-type": "tunnel-telemetry", "t": "2024-04-12T00:00:00Z", "endpoint": "ss://1.1.1.1:443", "config": {"prefix": "asdf"}}' \
-d @report.json \
http://localhost:8080/report
```

Expand Down

0 comments on commit e837def

Please sign in to comment.