From 3e590a4eb13711c0cb39945a700a67caa3962a3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?=
 <Fangliding.fshxy@outlook.com>
Date: Mon, 13 Jan 2025 03:10:39 +0800
Subject: [PATCH] Freedom: Don't use rawConn copy when using utls (#4272)

---
 proxy/freedom/freedom.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go
index f1866915..19bc15ab 100644
--- a/proxy/freedom/freedom.go
+++ b/proxy/freedom/freedom.go
@@ -266,6 +266,9 @@ func isTLSConn(conn stat.Connection) bool {
 		if _, ok := conn.(*tls.Conn); ok {
 			return true
 		}
+		if _, ok := conn.(*tls.UConn); ok {
+			return true
+		}
 	}
 	return false
 }