feat(diagnosis): add protocol-aware connectivity diagnosis for tunnel chains

- Pass tunnel protocol through diagnosis work items
- Support protocol-specific ping (TCP/UDP/KCP) via remote nodes
- Add KCP probe support in websocket_reporter for chain hop testing
This commit is contained in:
sagitchu
2026-04-21 14:00:02 +08:00
parent a968a10792
commit e995d70be7
4 changed files with 202 additions and 10 deletions
+1
View File
@@ -546,6 +546,7 @@ type TunnelRecord struct {
Status int
Flow int64
TrafficRatio float64
Protocol string
}
type UserQuotaView struct {
@@ -158,6 +158,7 @@ func (r *Repository) GetTunnelRecord(tunnelID int64) (*model.TunnelRecord, error
Status: t.Status,
Flow: t.Flow,
TrafficRatio: t.TrafficRatio,
Protocol: t.Protocol,
}
if tr.Flow <= 0 {
tr.Flow = 1