mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 04:17:36 +03:00
Add documentation and example for linux tun
This commit is contained in:
parent
7f84191748
commit
b417bd5be4
6 changed files with 162 additions and 4 deletions
|
@ -69,7 +69,7 @@ func (r *Rule) UnmarshalJSON(bytes []byte) error {
|
|||
}
|
||||
var v any
|
||||
switch r.Type {
|
||||
case "":
|
||||
case "", C.RuleTypeDefault:
|
||||
r.Type = C.RuleTypeDefault
|
||||
v = &r.DefaultOptions
|
||||
case C.RuleTypeLogical:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue