mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
(legacy) zap getNasIP
This commit is contained in:
parent
1f7af3105e
commit
8c182ca4e8
@ -5295,21 +5295,3 @@ function get_ppp_uptime($port){
|
||||
return $total_time;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the NAS-IP-Address based on the current wan address
|
||||
*
|
||||
* Use functions in interfaces.inc to find this out
|
||||
*
|
||||
*/
|
||||
|
||||
function getNasIP()
|
||||
{
|
||||
$nasIp = get_interface_ip();
|
||||
|
||||
if (!is_ipaddr($nasIp)) {
|
||||
$nasIp = '0.0.0.0';
|
||||
}
|
||||
|
||||
return $nasIp;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user