Permalink
Browse files

libident: reformat remote address, add server address

  • Loading branch information...
1 parent fdc419a commit 2fdba22f86629ea35c39bac34ba7936122d70b4a @grawity committed Apr 3, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 trash/libident-php/whoami.php
@@ -2,8 +2,14 @@
header("Content-Type: text/plain; charset=utf-8");
$i = array(
- "remote host" => $_SERVER["REMOTE_ADDR"],
- "remote port" => intval($_SERVER["REMOTE_PORT"]),
+ "server" => array(
+ "host" => $_SERVER["SERVER_ADDR"],
+ "port" => intval($_SERVER["SERVER_PORT"]),
+ ),
+ "remote" => array(
+ "host" => $_SERVER["REMOTE_ADDR"],
+ "port" => intval($_SERVER["REMOTE_PORT"]),
+ ),
);
if (@include "libident.php") {

0 comments on commit 2fdba22

Please sign in to comment.