From 85a5da131ccbbb6fe335da3ca7d67cc0c3f60aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Thu, 23 Oct 2008 21:51:53 +0000 Subject: * Rename get_current_wan_address to get_interface_ip * Rename get_real_wan_interface to get_real_interface * Simplify get_interface_ip by using find_interface_ip which should help in speed to since its using caching. Pointed by billm@ * Cleanup some code when passing or remove some unused one. --- etc/inc/captiveportal.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/captiveportal.inc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index b64fc16..36dedd6 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1109,7 +1109,7 @@ function getNasID() function getNasIP() { - $nasIp = get_current_wan_address(); + $nasIp = get_interface_ip(); if(!$nasIp) $nasIp = "0.0.0.0"; return $nasIp; @@ -1136,4 +1136,4 @@ function portal_mac_fixed($clientmac) { return FALSE ; } -?> \ No newline at end of file +?> -- cgit v1.1