This commit is contained in:
2024-09-19 18:12:24 +08:00
parent 89bb0d03e0
commit a1dcc1867f
19 changed files with 69 additions and 49 deletions

View File

@ -5,7 +5,8 @@ import (
"errors"
"reflect"
"strings"
C "sub2sing-box/constant"
C "github.com/nitezs/sub2sing-box/constant"
)
type _Outbound struct {
@ -83,6 +84,9 @@ func (h *Outbound) MarshalJSON() ([]byte, error) {
if err != nil {
return nil, err
}
if rawOptions == nil {
return json.Marshal((*_Outbound)(h))
}
result := make(map[string]any)
result["type"] = h.Type
result["tag"] = h.Tag

View File

@ -1,7 +1,7 @@
package model
import (
C "sub2sing-box/constant"
C "github.com/nitezs/sub2sing-box/constant"
"golang.org/x/text/collate"
"golang.org/x/text/language"