mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
流量统计,修复问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user