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); } }