Skip to content

Commit

Permalink
Correct README instructions on how to run a mirror
Browse files Browse the repository at this point in the history
The endpoint actually returns everything as JSON,
which is an obvious DoS vector.
  • Loading branch information
Geod24 committed Jun 24, 2024
1 parent d0c95e6 commit 27383b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Importing a one-time snapshot from the registry
You can download a dump of all packages and import it into your local registry for development:

```
curl https://code.dlang.org/api/packages/dump | gunzip > mirror.json
curl https://code.dlang.org/api/packages/dump > mirror.json
dub -- --mirror=mirror.json
```

Expand Down

0 comments on commit 27383b7

Please sign in to comment.