流量统计,修复问题

This commit is contained in:
sprov
2021-05-30 22:41:02 +08:00
parent 4bae13dcc6
commit 810dad53d5
18 changed files with 690 additions and 149 deletions

View File

@@ -1,6 +1,9 @@
package xray
import "encoding/json"
import (
"encoding/json"
"x-ui/util/json_util"
)
type Config struct {
LogConfig json.RawMessage `json:"log"`
@@ -15,3 +18,7 @@ type Config struct {
Reverse json.RawMessage `json:"reverse"`
FakeDNS json.RawMessage `json:"fakeDns"`
}
func (c *Config) MarshalJSON() ([]byte, error) {
return json_util.MarshalJSON(c)
}