Skip to content

Commit 7ddc4a2

Browse files
authored
REALITY practice: Support X25519MLKEM768 for TLS' communication
#3813 (comment)
1 parent 882975c commit 7ddc4a2

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/stretchr/testify v1.10.0
2121
github.com/v2fly/ss-bloomring v0.0.0-20210312155135-28617310f63e
2222
github.com/vishvananda/netlink v1.3.1
23-
github.com/xtls/reality v0.0.0-20240712055506-48f0b2d5ed6d
23+
github.com/xtls/reality v0.0.0-20250513125209-514f8647eac0
2424
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
2525
golang.org/x/crypto v0.38.0
2626
golang.org/x/net v0.40.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ github.com/vishvananda/netns v0.0.5 h1:DfiHV+j8bA32MFM7bfEunvT8IAqQ/NzSJHtcmW5zd
7878
github.com/vishvananda/netns v0.0.5/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM=
7979
github.com/xtls/reality v0.0.0-20240712055506-48f0b2d5ed6d h1:+B97uD9uHLgAAulhigmys4BVwZZypzK7gPN3WtpgRJg=
8080
github.com/xtls/reality v0.0.0-20240712055506-48f0b2d5ed6d/go.mod h1:dm4y/1QwzjGaK17ofi0Vs6NpKAHegZky8qk6J2JJZAE=
81+
github.com/xtls/reality v0.0.0-20250513125209-514f8647eac0 h1:ou6jXqJ9Ogs0BaEIzuszo1HMBokiKpf7XpNdsVYcvfA=
82+
github.com/xtls/reality v0.0.0-20250513125209-514f8647eac0/go.mod h1:bJdU3ExzfUlY40Xxfibq3THW9IHiE8mHu/tEzud5JWM=
8183
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
8284
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
8385
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=

transport/internet/tls/tls.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func init() {
163163

164164
func GetFingerprint(name string) (fingerprint *utls.ClientHelloID) {
165165
if name == "" {
166-
return &utls.HelloChrome_120
166+
return &utls.HelloChrome_Auto
167167
}
168168
if fingerprint = PresetFingerprints[name]; fingerprint != nil {
169169
return
@@ -179,7 +179,7 @@ func GetFingerprint(name string) (fingerprint *utls.ClientHelloID) {
179179

180180
var PresetFingerprints = map[string]*utls.ClientHelloID{
181181
// Recommended preset options in GUI clients
182-
"chrome": &utls.HelloChrome_120,
182+
"chrome": &utls.HelloChrome_Auto,
183183
"firefox": &utls.HelloFirefox_Auto,
184184
"safari": &utls.HelloSafari_Auto,
185185
"ios": &utls.HelloIOS_Auto,
@@ -206,6 +206,7 @@ var ModernFingerprints = map[string]*utls.ClientHelloID{
206206
"hellochrome_102": &utls.HelloChrome_102,
207207
"hellochrome_106_shuffle": &utls.HelloChrome_106_Shuffle,
208208
"hellochrome_120": &utls.HelloChrome_120,
209+
"hellochrome_131": &utls.HelloChrome_131,
209210
"helloios_13": &utls.HelloIOS_13,
210211
"helloios_14": &utls.HelloIOS_14,
211212
"helloedge_85": &utls.HelloEdge_85,
@@ -241,12 +242,11 @@ var OtherFingerprints = map[string]*utls.ClientHelloID{
241242
"hello360_7_5": &utls.Hello360_7_5,
242243
"helloqq_auto": &utls.HelloQQ_Auto,
243244

244-
// reality currently does not support these new fingerprints
245+
// Chrome betas'
245246
"hellochrome_100_psk": &utls.HelloChrome_100_PSK,
246247
"hellochrome_112_psk_shuf": &utls.HelloChrome_112_PSK_Shuf,
247248
"hellochrome_114_padding_psk_shuf": &utls.HelloChrome_114_Padding_PSK_Shuf,
248249
"hellochrome_115_pq": &utls.HelloChrome_115_PQ,
249250
"hellochrome_115_pq_psk": &utls.HelloChrome_115_PQ_PSK,
250251
"hellochrome_120_pq": &utls.HelloChrome_120_PQ,
251-
"hellochrome_131": &utls.HelloChrome_131,
252252
}

0 commit comments

Comments
 (0)