diff options
| author | root | 2014-12-05 05:06:52 +0100 |
|---|---|---|
| committer | root | 2014-12-05 05:06:52 +0100 |
| commit | 1ffa65c88b570aca2b5d3b9b7202e30beeee2fe7 (patch) | |
| tree | 6f9ac147713e39c0fe374307c8228287b1dad8c7 /ifconfig/index.php | |
| parent | fe476696fb1200d0ea366d056dca976cb45373f9 (diff) | |
| download | tools.iamfabulous.de-1ffa65c88b570aca2b5d3b9b7202e30beeee2fe7.tar.gz | |
Made it ipv6 ready.
Diffstat (limited to 'ifconfig/index.php')
| -rw-r--r-- | ifconfig/index.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ifconfig/index.php b/ifconfig/index.php index 83e03ed..a390ec2 100644 --- a/ifconfig/index.php +++ b/ifconfig/index.php @@ -1,12 +1,9 @@ <?php -if ( strpos($_SERVER['HTTP_USER_AGENT'], 'libcurl') ){ +if ( strpos($_SERVER['HTTP_USER_AGENT'], 'curl') !== false ){ if ( empty($_GET) ){ echo $_SERVER["REMOTE_ADDR"]; exit; - } else { - // avoid redirect - $_GET["curl"] = true; } } |
