Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xray/process.go')
-rw-r--r--xray/process.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xray/process.go b/xray/process.go
index b4947864..077ff339 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -64,7 +64,7 @@ func GetAccessLogPath() (string, error) {
return "", err
}
- jsonConfig := map[string]interface{}{}
+ jsonConfig := map[string]any{}
err = json.Unmarshal([]byte(config), &jsonConfig)
if err != nil {
logger.Warningf("Failed to parse JSON configuration: %s", err)
@@ -72,7 +72,7 @@ func GetAccessLogPath() (string, error) {
}
if jsonConfig["log"] != nil {
- jsonLog := jsonConfig["log"].(map[string]interface{})
+ jsonLog := jsonConfig["log"].(map[string]any)
if jsonLog["access"] != nil {
accessLogPath := jsonLog["access"].(string)
return accessLogPath, nil