Merge pull request #632 from Loyalsoldier/update-readme

Add dlc.dat generation method
This commit is contained in:
Richard Chen 2020-07-17 13:34:22 +08:00 committed by GitHub
commit 055d6a54dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,14 @@ Each file in the `data/` directory can be used as a rule in this format: `geosit
}
```
## Generate `dlc.dat` manually
- Install `golang` and `git`
- Download and install project code: `go get -u -v --insecure github.com/v2ray/domain-list-community`
- Generate `dlc.dat` (without `datapath` option means to use `data` directory of this project):
- `$(go env GOPATH)/bin/domain-list-community`
- `$(go env GOPATH)/bin/domain-list-community --datapath=/path/to/your/custom/data/directory`
## Structure of data
All data are under `data/` directory. Each file in the directory represents a sub-list of domains, named by the file name. File content is in the following format.