Add documentation and example for linux tun

This commit is contained in:
世界 committed 2022-07-10 16:44:12 +08:00
1 parent 7f84191748
commit b417bd5be4
6 files changed
+162 -4

No files matched your search

+1 -1
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: