From bc548656f5ad8945649e1800df6ce32b3a3816ba Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Fri, 17 Jul 2020 12:38:39 +0800 Subject: [PATCH] Add dlc.dat generation method --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e0ff577e..28801bb5 100644 --- a/README.md +++ b/README.md @@ -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.