Skip to content

Commit

Permalink
fix (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
muink authored Dec 20, 2024
1 parent 4a5e060 commit 9b8eeb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/config/rule-providers/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
rule-providers:
google:
type: http
path: ./rule1.yaml
path: ./rule1.yaml
url: "https://raw.githubusercontent.com/../Google.yaml"
interval: 600
proxy: DIRECT
Expand All @@ -19,7 +19,7 @@ Required, such as `google`, must be unique.

## type

Required, `provider` type, options are `http` / `file`.
Required, `provider` type, options are `http` / `file` / `inline`.

## url

Expand All @@ -45,7 +45,7 @@ Behavior, options are `domain` / `ipcidr` / `classical`, corresponding to differ

## format

Format, options are `yaml` / `text` / `mrs`/`inline`, default is `yaml`.
Format, options are `yaml` / `text` / `mrs`, default is `yaml`.

Currently, `mrs` behavior only supports `domain` / `ipcidr`. You can convert using `mihomo convert-ruleset domain/ipcidr yaml/text XXX.yaml XXX.mrs`.

Expand All @@ -55,4 +55,4 @@ The maximum size of downloadable files is restricted, with the default being 0,

## payload

Content, only effective when `format` is `inline`
Content, only effective when `type` is `inline`
8 changes: 4 additions & 4 deletions docs/config/rule-providers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
rule-providers:
google:
type: http
path: ./rule1.yaml
path: ./rule1.yaml
url: "https://raw.githubusercontent.com/../Google.yaml"
interval: 600
proxy: DIRECT
Expand All @@ -21,7 +21,7 @@ rule-providers:

## type

必须,`provider`类型,可选`http` / `file`
必须,`provider`类型,可选`http` / `file` / `inline`

## url

Expand All @@ -47,7 +47,7 @@ rule-providers:

## format

格式,可选 `yaml`/`text`/`mrs`/`inline`,默认 `yaml`
格式,可选 `yaml`/`text`/`mrs`,默认 `yaml`

`mrs`目前 `behavior` 仅支持 `domain`/`ipcidr`,可以通过`mihomo convert-ruleset domain/ipcidr yaml/text XXX.yaml XXX.mrs`转换得到

Expand All @@ -57,4 +57,4 @@ rule-providers:

## payload

内容,仅 `format``inline` 时生效
内容,仅 `type``inline` 时生效

0 comments on commit 9b8eeb4

Please sign in to comment.