diff options
Diffstat (limited to 'admin/WebConsole/varios/menucliente.php')
-rw-r--r-- | admin/WebConsole/varios/menucliente.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/WebConsole/varios/menucliente.php b/admin/WebConsole/varios/menucliente.php index 0780aa71..41bf0162 100644 --- a/admin/WebConsole/varios/menucliente.php +++ b/admin/WebConsole/varios/menucliente.php @@ -219,6 +219,8 @@ function tomaIP(){ $ipcliente = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]; else $ipcliente = $HTTP_SERVER_VARS["REMOTE_ADDR"]; + if (empty ($ipcliente)) + $ipcliente = $_SERVER["REMOTE_ADDR"]; return($ipcliente); } |