feat: 基于KCP的Ping程序,利用目前的传输栈

This commit is contained in:
2026-03-27 00:06:27 +08:00
parent 665a908421
commit 0689eaaa76
4 changed files with 848 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
//go:build !linux
package main
import (
"fmt"
"io"
"runtime"
"time"
)
func runPlatform(cfg config, stdout, stderr io.Writer, now func() time.Time) error {
return fmt.Errorf("kcpping is only supported on linux; current GOOS=%s", runtime.GOOS)
}