summaryrefslogtreecommitdiff
path: root/ifconfig/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'ifconfig/index.php')
-rw-r--r--ifconfig/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifconfig/index.php b/ifconfig/index.php
index b87d316..83e03ed 100644
--- a/ifconfig/index.php
+++ b/ifconfig/index.php
@@ -19,7 +19,7 @@ if ( empty($_GET) ){
if ( ! isset($_GET["ip"]) || $_GET["ip"] == "" ){
$ip = $_SERVER["REMOTE_ADDR"];
} else {
- if( preg_match("/([0-9]+\.){3}[0-9]+/", $ip) ){
+ if( preg_match("/([0-9]+\.){3}[0-9]+/", $_GET["ip"]) ){
$ip = $_GET["ip"];
} else {
$ip = gethostbyname($_GET["ip"]);