Add documentation and example for linux tun

This commit is contained in:
世界 2022-07-10 16:41:38 +08:00
parent 7f84191748
commit b417bd5be4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 162 additions and 4 deletions

View file

@ -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: