From 5c2207906b2db5c95c31aca29468ec245996c169 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 30 Apr 2025 07:26:50 +0200 Subject: [PATCH] dns/rfc2136: function renamed for clarity --- dns/rfc2136/Makefile | 2 +- dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/rfc2136/Makefile b/dns/rfc2136/Makefile index 13df9955f..37d29c8e9 100644 --- a/dns/rfc2136/Makefile +++ b/dns/rfc2136/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= rfc2136 PLUGIN_VERSION= 1.9 -PLUGIN_REVISION= 3 +PLUGIN_REVISION= 4 PLUGIN_COMMENT= RFC-2136 Support PLUGIN_MAINTAINER= franco@opnsense.org PLUGIN_DEPENDS= bind-tools diff --git a/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc b/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc index 349f07dde..bf346cd29 100644 --- a/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc +++ b/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc @@ -222,7 +222,7 @@ function get_rfc2136_ip_address($int, $ipver = 4) return 'down'; } - if ($ipver != 6 && is_private_ip($ip_address)) { + if ($ipver != 6 && is_private_ipv4($ip_address)) { $ip_ch = curl_init('http://checkip.dyndns.org'); curl_setopt($ip_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ip_ch, CURLOPT_INTERFACE, $ip_address);