feat:多跳(B->D->C->A)功能

This commit is contained in:
nnbcccscdscdsc
2026-03-27 23:03:00 +08:00
parent 5be3ff670f
commit 8e2bd0ffc6
8 changed files with 455 additions and 51 deletions

View File

@@ -32,8 +32,13 @@ func DialKCP(serverAddr, peerID string, opts ...Option) (*KCPClient, error) {
options.logger = latencylog.NoopLogger{}
}
dialAddr := serverAddr
if options.kcpDialAddress != "" {
dialAddr = options.kcpDialAddress
}
session, err := transport.DialKCPSession(
serverAddr,
dialAddr,
options.bindIP,
options.bindDevice,
options.kcpPacketDebugLogger,