From eb67dc29720e0f15e5a3f984f13067a45b46599c Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 2 Dec 2021 15:05:56 -0500 Subject: [PATCH] added break for getting wan dhcp details as more than a few interfaces would break it --- opnsense-carp-dhcp-master.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opnsense-carp-dhcp-master.php b/opnsense-carp-dhcp-master.php index 5a24d85..9da5ea2 100644 --- a/opnsense-carp-dhcp-master.php +++ b/opnsense-carp-dhcp-master.php @@ -114,6 +114,8 @@ do { if ($ifcfg['descr'] == 'WAN') { # this will have all the information about the WAN interface $ifcfg['details'] = $ifdetails[$ifcfg['if']]; + # this will break out the loop and leave the $ifcfg with the details of the wan + break; #print_r($ifcfg); } }