mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-08 02:36:37 +08:00
fix(backend): properly implement tunnel_%d cleanup that was lost during revert
This commit is contained in:
@@ -3564,7 +3564,7 @@ func buildTunnelChainServiceConfig(tunnelID int64, chainNode tunnelRuntimeNode,
|
|||||||
handlerCfg["retries"] = nextHopCandidateCount - 1
|
handlerCfg["retries"] = nextHopCandidateCount - 1
|
||||||
}
|
}
|
||||||
service := map[string]interface{}{
|
service := map[string]interface{}{
|
||||||
"name": fmt.Sprintf("%d_%s", tunnelID, protocol),
|
"name": fmt.Sprintf("tunnel_%d", tunnelID),
|
||||||
"addr": processServerAddress(fmt.Sprintf("%s:%d", defaultString(strings.TrimSpace(chainNode.ConnectIP), node.TCPListenAddr), chainNode.Port)),
|
"addr": processServerAddress(fmt.Sprintf("%s:%d", defaultString(strings.TrimSpace(chainNode.ConnectIP), node.TCPListenAddr), chainNode.Port)),
|
||||||
"handler": handlerCfg,
|
"handler": handlerCfg,
|
||||||
"listener": buildTunnelListenerConfig(protocol),
|
"listener": buildTunnelListenerConfig(protocol),
|
||||||
|
|||||||
Reference in New Issue
Block a user