From 76344593d63dd4f6139db0dd5eee6e5a0006d739 Mon Sep 17 00:00:00 2001 From: veto9292 Date: Fri, 30 Oct 2026 00:12:02 +0330 Subject: [PATCH] fix(deps): update tfo-go to v2.4.2 for Go 1.27 On Windows, tfo-go v2.3.2 links to internal/poll.(*FD).execIO with the signature of an older Go (a buf []byte last argument). Go 1.27.3 takes pinPtrs ...any there, so with TCP Fast Open a failed dial or handshake returned a broken error, and the core crashed as soon as it read it (in the URL test's log, or in errors.As in the TLS dialer). Large subscriptions crashed within a second of starting. v2.4.2 matches Go 1.27.3. With the same 6,000-proxy profile the core ran without a crash, and failed dials through TCP Fast Open (refused, timeout, TLS errors) were logged normally. golang.org/x/sys moves to v0.49.0, which tfo-go v2.4.2 requires. Co-Authored-By: Claude Opus 5.5 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index edbc481fd..4162237da 100644 --- a/go.mod +++ b/go.mod @@ -49,7 +49,7 @@ require ( github.com/creack/pty v1.1.24 // indirect github.com/cretz/bine v0.2.0 // indirect github.com/database64128/netx-go v0.1.1 // indirect - github.com/database64128/tfo-go/v2 v2.3.2 // indirect + github.com/database64128/tfo-go/v2 v2.4.2 // indirect github.com/dblohm7/wingoes v0.0.0-20240119213807-a09d6be7affa // indirect github.com/dchest/siphash v1.2.3 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect @@ -306,7 +306,7 @@ require ( github.com/xtls/xray-core v1.260327.1-0.20260728075948-5ca6f4b7d4dc golang.org/x/crypto v0.54.0 golang.org/x/net v0.57.0 - golang.org/x/sys v0.47.0 + golang.org/x/sys v0.49.0 google.golang.org/grpc v1.82.1 google.golang.org/protobuf v1.36.11 gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index 758232ddd..9c6366972 100644 --- a/go.sum +++ b/go.sum @@ -154,6 +154,8 @@ github.com/database64128/netx-go v0.1.1 h1:dT5LG7Gs7zFZBthFBbzWE6K8wAHjSNAaK7wCY github.com/database64128/netx-go v0.1.1/go.mod h1:LNlYVipaYkQArRFDNNJ02VkNV+My9A5XR/IGS7sIBQc= github.com/database64128/tfo-go/v2 v2.3.2 h1:UhZMKiMq3swZGUiETkLBDzQnZBPSAeBMClpJGlnJ5Fw= github.com/database64128/tfo-go/v2 v2.3.2/go.mod h1:GC3uB5oa4beGpCUbRb2ZOWP73bJJFmMyAVgQSO7r724= +github.com/database64128/tfo-go/v2 v2.4.2 h1:qpOgakBbvU0gqCZG4eL9q40OvKr/jAItkmkoTGU55fs= +github.com/database64128/tfo-go/v2 v2.4.2/go.mod h1:HPaLO89zsw0N8UHdscSr+ReLArAgt+Oc/AYC8rolC2k= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -1206,6 +1208,8 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=