From 9b204ed99bfb0b1fab4edce005b36fee75a3989d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Fri, 24 Sep 2021 13:21:03 +0800 Subject: [PATCH] Fix: Trojan fallback (cherry picked from commit 908408dd45a58c3c284ecf0dfef539c5681230d9) --- proxy/trojan/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/trojan/server.go b/proxy/trojan/server.go index 7c965097..2ba4823c 100644 --- a/proxy/trojan/server.go +++ b/proxy/trojan/server.go @@ -2,7 +2,6 @@ package trojan import ( "context" - "crypto/tls" "io" "strconv" "strings" @@ -23,10 +22,11 @@ import ( "github.com/xtls/xray-core/common/session" "github.com/xtls/xray-core/common/signal" "github.com/xtls/xray-core/common/task" - core "github.com/xtls/xray-core/core" + "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/features/policy" "github.com/xtls/xray-core/features/routing" "github.com/xtls/xray-core/features/stats" + "github.com/xtls/xray-core/transport/internet/tls" "github.com/xtls/xray-core/transport/internet/udp" "github.com/xtls/xray-core/transport/internet/xtls" )