From 3c18be1086ec00cc038d2933d299538e8f8355bb Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 25 Jul 2022 09:31:35 +0200 Subject: [PATCH] interfaces: fix two warnings --- src/etc/inc/interfaces.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index a9f5d056c..464f4d571 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -559,6 +559,8 @@ function interfaces_gre_configure($device) function _interfaces_gre_configure($gre) { + global $config; + /* * The model used by GRE stuffs the alias IP into 'if' and we have * no way of directly seeing the interface (handled slightly better @@ -2758,6 +2760,7 @@ function interface_dhcpv6_prepare($interface, $wancfg, $cleanup = false) $wanif = get_real_interface($interface, 'inet6'); $id = interface_dhcpv6_id($interface); $syscfg = config_read_array('system'); + $dhcp6_debug = $syscfg['dhcp6_debug'] ?? ''; if (!empty($wancfg['adv_dhcp6_config_file_override'])) { $dhcp6cfile = $wancfg['adv_dhcp6_config_file_override_path']; @@ -2781,7 +2784,7 @@ function interface_dhcpv6_prepare($interface, $wancfg, $cleanup = false) $dhcp6cscript = <<