Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
更新 README
Browse files Browse the repository at this point in the history
  • Loading branch information
CalmLong committed Nov 3, 2020
1 parent b5327e1 commit 51a0c61
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

## 支持格式

* Hosts
* hosts
* dnsmasq
* Adblock
* Pi-Hole
* Surge
* adblock
* pi-Hole
* surge

## 参数

Expand All @@ -36,7 +36,6 @@
* `dnsmasq`
* `v2ray`
* `adblock`
* `coredns`
* `surge`
* `only`

Expand All @@ -51,20 +50,19 @@

* `hosts`
* `dnsmasq`
* `coredns`
* `surge`

`-p` 自定义输出域名格式

> 前两个参数(0,1)为子域名的前/后缀,后两个参数(2,3)为主域名的前后缀;
> 中间用英文的 `;` 隔开;
> 四个参数均为必填,不需要添加内容则用 `""` 代替
> 四个参数均为必填,不需要添加内容只写 `;` 即可
## 示例

* 输出自定义格式的域名;通等于 `-v` 中的 `dnsmasq`

`./domain-parse -c=url.txt -p server=/;/114.114.114.114;server=/;/114.114.114.114`
`./domain-parse -c=url.txt -p 'server=/;/114.114.114.114;server=/;/114.114.114.114'`

* 输出适用于 Surge 等工具支持的格式

Expand All @@ -84,6 +82,8 @@

`./domain-parse -v only`

等同于 `./domain-parse -p ;;;;`

## 输出

转换完成后输出一个无后缀名且为 `domain` 的文本,可用记事本等文本编辑器打开
Expand Down

0 comments on commit 51a0c61

Please sign in to comment.