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

This commit is contained in:
2026-03-27 01:59:17 +08:00
parent 5b231141a7
commit 8cec6a0766
7 changed files with 154 additions and 37 deletions

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)