From 4f923b809b4e38e0639e253f428fb6c4df03ee67 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Nov 2014 15:55:25 +0100 Subject: More structured + better UI --- ifconfig/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ifconfig/index.php') 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"]); -- cgit v1.2.3