aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy')
-rwxr-xr-xconfig/haproxy/haproxy_global.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php
index 1ef28005..340c578b 100755
--- a/config/haproxy/haproxy_global.php
+++ b/config/haproxy/haproxy_global.php
@@ -289,7 +289,7 @@ function enable_change(enable_change) {
foreach($config['virtualip']['vip'] as $carp):
if ($carp['mode'] != "carp") continue;
$ipaddress = $carp['subnet'];
- $carp_int = find_carp_interface($ipaddress);
+ $carp_int = trim(find_carp_interface($ipaddress));
?>
<option value="<?=$carp_int;?>"
<?php if (isset($pconfig['carpdev']) && $carp_int == $pconfig['carpdev']) echo "selected"; ?>>