From 85d2657ce68e74b4375e5acf4edd8e40251ec087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20R=C3=B6nnvall?= Date: Sun, 3 Feb 2019 09:07:57 +0100 Subject: [PATCH] Fix behaviour of determining dhcp primary/secondary When there is more than one CARP address per interface with different skews, check only the first CARP if and skew in order to determine primary. This prevents a misconfiguration where both hosts are configured as dhcp primary. --- src/etc/inc/services.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 045d4c58b..e331710b5 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -533,8 +533,8 @@ EOD; /* this is the interface! */ if (is_numeric($vipent['advskew']) && (intval($vipent['advskew']) < 20)) { $skew = 0; - break; } + break; } } }