From 4b97edae74e412f6bdd818debdfe130776c0de27 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Mon, 1 Mar 2021 01:29:17 +0000 Subject: [PATCH] Fix https://github.com/XTLS/Xray-core/issues/320 --- main/run.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main/run.go b/main/run.go index e0485882..8bd4027c 100644 --- a/main/run.go +++ b/main/run.go @@ -16,7 +16,6 @@ import ( "github.com/xtls/xray-core/common/cmdarg" "github.com/xtls/xray-core/common/platform" "github.com/xtls/xray-core/core" - "github.com/xtls/xray-core/infra/conf" "github.com/xtls/xray-core/main/commands/base" ) @@ -82,9 +81,11 @@ func executeRun(cmd *base.Command, args []string) { } defer server.Close() - conf.FileCache = nil - conf.IPCache = nil - conf.SiteCache = nil + /* + conf.FileCache = nil + conf.IPCache = nil + conf.SiteCache = nil + */ // Explicitly triggering GC to remove garbage from config loading. runtime.GC()