Properly format the IPv6 address within brackets so that Carp sync to a ipv6 address works

This commit is contained in:
Seth Mos 2010-11-15 10:53:35 +01:00
parent 3c009080b8
commit 4f3768154f

View File

@ -238,6 +238,8 @@ if (is_array($config['installedpackages']['carpsettings']['config'])) {
$port = "443";
}
if(is_ipaddrv6($carp['synchronizetoip']))
$carp['synchronizetoip'] = "[{$carp['synchronizetoip']}]";
$synchronizetoip .= $carp['synchronizetoip'];
if ($carp['synchronizerules'] != "") {
if (!is_array($config['filter']))