Permalink
Browse files

Let's get the IP address, too, because a lot of mirrors aren't going …

…to have FQDNs or even unique hostnames.
  • Loading branch information...
1 parent bc773fe commit 5421e405f33a4b5b34e80987a681f043b9b43fdc @db- db- committed Oct 10, 2012
Showing with 11 additions and 10 deletions.
  1. +11 −10 mirror-info.php
View
21 mirror-info.php
@@ -39,16 +39,17 @@
}
echo join('|', array(
- $MYSITE, // 0: ServerName problems
- phpversion(), // 1: PHP version overview
- $LAST_UPDATED, // 2: Update problems
- $sqlite, // 3: SQLite support?
- $mirror_stats, // 4: Optional local stats support
- default_language(), // 5: Mirror language
- 'manual-noalias', // 6: /manual alias check is done elsewhere now
- $md5_ok, // 7: Rsync setup problems
- $exts, // 8: List of php extensions separated by comma
- gethostname(), // 9: The configured hostname of the local system
+ $MYSITE, // 0 : CNAME for mirror as accessed (CC, CC1, etc.)
+ phpversion(), // 1 : PHP version overview
+ $LAST_UPDATED, // 2 : Update problems
+ $sqlite, // 3 : SQLite support?
+ $mirror_stats, // 4 : Optional local stats support
+ default_language(), // 5 : Mirror language
+ 'manual-noalias', // 6 : /manual alias check is done elsewhere now
+ $md5_ok, // 7 : Rsync setup problems
+ $exts, // 8 : List of php extensions separated by comma
+ gethostname(), // 9 : The configured hostname of the local system
+ $_SERVER['SERVER_ADDR'], // 10: The IP address under which we're running
));
function run_self_tests() {

0 comments on commit 5421e40

Please sign in to comment.