From 842075ca061da0ed8a27cc535b8d34134fd7cfe2 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 16 Sep 2024 16:49:13 +0200 Subject: [PATCH] interfaces: move legacy RFC2136 to plugin hook We can't remove it now and we can't widen the call since local and newwanip_map are mostly the same, but also different. Use the selector trick to just invoke what we need and lose the configd error. PR: https://www.reddit.com/r/opnsense/comments/1fi5mw3/rfc2136_errors_in_audit_log/ --- src/etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 6860aa554..0e80cf512 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -2527,8 +2527,8 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal plugins_configure('ipsec', $verbose, [$interface]); plugins_configure('dhcp', $verbose); plugins_configure('dns', $verbose); - /* XXX move this up the call stack */ - configdp_run('rfc2136 reload', [$interface]); + /* XXX not ideal but avoids "errors" in the log */ + plugins_configure('newwanip_map:rfc2136', $verbose, [$interface]); } /* XXX device dependency plugin hook */