From 8ad302e5cce1825a0ecedd2b30d4702d16f40e54 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 30 Nov 2021 17:58:50 -0500 Subject: [PATCH] update gateway $interface to $wanInterface --- opnsense-carp-dhcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opnsense-carp-dhcp.php b/opnsense-carp-dhcp.php index 517d042..11ebcdd 100644 --- a/opnsense-carp-dhcp.php +++ b/opnsense-carp-dhcp.php @@ -140,7 +140,7 @@ $config['interfaces'][$wanInterface]['gateway'] = $gatewayName; # setup gateway $gwCount = count($config['gateways']['gateway_item']); $config['gateways']['gateway_item'][$gwCount]['gateway'] = $gatewayIP; -$config['gateways']['gateway_item'][$gwCount]['interface'] = $interface; +$config['gateways']['gateway_item'][$gwCount]['interface'] = $wanInterface; $config['gateways']['gateway_item'][$gwCount]['name'] = $gatewayName; $config['gateways']['gateway_item'][$gwCount]['ipprotocol'] = 'inet'; $config['gateways']['gateway_item'][$gwCount]['monitor_disable'] = 1;