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

Commit

Permalink
更新分隔符
Browse files Browse the repository at this point in the history
  • Loading branch information
CalmLong committed Apr 16, 2020
1 parent 776d122 commit 5585c12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

`-e` 修改 `-v` 参数输出的默认值,仅支持 `dnsmasq``hosts`

`-p` 自定义输出域名格式,中间用英文的 `,` 隔开
`-p` 自定义输出域名格式,中间用英文的 `;` 隔开

> `-p` 前两(0,1)个参数为子域名的前/后缀,后两个(2,3)为主域名的前后缀,
> 四个参数均为必填,不需要添加内容则用 `""` 代替
Expand All @@ -62,7 +62,11 @@

* 输出自定义格式的域名;通等于 `-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`

* 输出适用于 Kitsunebi

`./domain-parse.exe -p "DOMAIN-SUFFIX,;,Reject";"DOMAIN-SUFFIX,;,Reject"`

* 输出 V2Ray 支持的格式:

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func main() {
pars := flag.String("p", "", "customize")
flag.Parse()
params = make([]string, 0)
params = strings.Split(strings.TrimSpace(*pars), ",")
params = strings.Split(strings.TrimSpace(*pars), ";")
f, err := os.Open(strings.TrimSpace(*file))
if err != nil {
log.Println(err)
Expand Down

0 comments on commit 5585c12

Please sign in to comment.