mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-06-16 10:03:18 +08:00
🐛Fix #9
This commit is contained in:
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user