dns/rfc2136: function renamed for clarity

This commit is contained in:
Franco Fichtner 2025-04-30 07:26:50 +02:00
parent 1936e00736
commit 5c2207906b
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

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