fix: transport.UDPConn 新增了 WithUDPLinuxTimestamping(false) 开关

This commit is contained in:
mochangkang committed 2026-03-27 01:59:17 +08:00
1 parent 5b231141a7
commit 8cec6a0766
7 files changed
+154 -37

No files matched your search

+2 -1
View File
@@ -35,8 +35,9 @@ func runPlatform(cfg config, stdout, stderr io.Writer, now func() time.Time) err
}
func dialUDPClient(cfg config) (*peerpkg.UDPClient, func(), error) {
options := make([]peerpkg.Option, 0, 2)
options := make([]peerpkg.Option, 0, 3)
closeLogger := func() {}
options = append(options, peerpkg.WithUDPLinuxTimestamping(false))
if cfg.latencyLog != "" {
logger, err := latencylog.NewJSONLLogger(cfg.latencyLog)