From 50bd3e9e4a02636fdb53cdd0d40383f96c5fdd0e Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Thu, 3 Jun 2021 18:16:21 +0900 Subject: [PATCH] Fix backwards compatibility with 4.1 and earlier. --- templates/pgconfig.tpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl index 170e6e0..5f1c4bc 100644 --- a/templates/pgconfig.tpl +++ b/templates/pgconfig.tpl @@ -858,6 +858,17 @@ {custom_tr_pgconfig param='heartbeat_destination_port' num=$dest_num} {custom_tr_pgconfig param='heartbeat_device' num=$dest_num} {/foreach} + + {if isset($isAddHeartbeatDestination) && $isAddHeartbeatDestination == true} + + Heartbeat destination {$dest_num+1} + + + {custom_tr_pgconfig param='heartbeat_destination' num=$dest_num+1} + {custom_tr_pgconfig param='heartbeat_destination_port' num=$dest_num+1} + {custom_tr_pgconfig param='heartbeat_device' num=$dest_num+1} + {/if} {/if} -- 2.39.5