fix tunnel weight

This commit is contained in:
ginuerzh
2024-01-28 18:33:54 +08:00
parent b5b39de62c
commit 3616a0d8a4
6 changed files with 11 additions and 14 deletions

View File

@ -216,7 +216,7 @@ func (h *tunnelHandler) Handle(ctx context.Context, conn net.Conn, opts ...handl
}
case relay.FeatureTunnel:
if feature, _ := f.(*relay.TunnelFeature); feature != nil {
tunnelID = relay.NewTunnelID(feature.ID[:])
tunnelID = feature.ID
}
case relay.FeatureNetwork:
if feature, _ := f.(*relay.NetworkFeature); feature != nil {