mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/rfc2136: function renamed for clarity
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user