Skip to content

Commit

Permalink
update description and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
peanut996 committed Dec 7, 2024
1 parent a8ccdb8 commit 7d4aca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/API-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Singbox 的规则集来自 [https://github.com/lyc8503/sing-box-rules](https://g
- `domain_suffix`: 域名后缀规则数组
- `domain_keyword`: 域名关键词规则数组
- `ip_cidr`: IP CIDR 规则数组
- `protocol`: 协议规则数组
- `outbound`: 出站名称

示例:
Expand All @@ -172,6 +173,7 @@ Singbox 的规则集来自 [https://github.com/lyc8503/sing-box-rules](https://g
"domain_suffix": [".com", ".org"],
"domain_keyword": ["Mijia Cloud", "push.apple"],
"ip_cidr": ["192.168.0.0/16", "10.0.0.0/8"],
"protocol": ["http", "tls", "dns"],
"outbound": "🤪 MyCustomRule"
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/htmlBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@ const customRuleFunctions = `
<span class="tooltip-icon">
<i class="fas fa-question-circle"></i>
<span class="tooltip-content">
Protocol rules for specific traffic types (e.g., dns, http, tls)
Protocol rules for specific traffic types. More details: https://sing-box.sagernet.org/configuration/route/sniff/
</span>
</span>
<input type="text" class="form-control mb-2" name="customRuleProtocol[]" placeholder="Protocol (comma separated, e.g., dns,http,tls)">
<input type="text" class="form-control mb-2" name="customRuleProtocol[]" placeholder="Protocol (comma separated, e.g, http,ssh,dns)">
</div>
<button type="button" class="btn btn-danger btn-sm" onclick="removeCustomRule(this)">Remove</button>
\`;
Expand Down

0 comments on commit 7d4aca4

Please sign in to comment.