mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
services: if ip detection fails don't leak private IPv4
PR: https://github.com/opnsense/core/issues/2368
This commit is contained in:
parent
2b9ee69f10
commit
1547ecce67
@ -1606,6 +1606,7 @@ function get_dyndns_ip($int, $ipver = 4)
|
||||
$ip_address = trim($matches[1]);
|
||||
} else {
|
||||
log_error('Aborted IPv4 detection: ' . curl_error($ip_ch));
|
||||
$ip_address = '';
|
||||
}
|
||||
curl_close($ip_ch);
|
||||
if (!is_ipaddrv4($ip_address)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user