Skip to content

Commit

Permalink
Revert "Info panel: Add server name by IP (#401)" [Closes #416][Closes
Browse files Browse the repository at this point in the history
…#417]

This reverts commit 149a87a.
  • Loading branch information
dg committed Apr 21, 2020
1 parent 9fc3552 commit 5b26009
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Tracy/Bar/panels/info.panel.phtml
Expand Up @@ -44,8 +44,7 @@ $info = [
'Classes + interfaces + traits' => $countClasses(get_declared_classes()) . ' + '
. $countClasses(get_declared_interfaces()) . ' + ' . $countClasses(get_declared_traits()),
'Your IP' => $ipFormatter($_SERVER['REMOTE_ADDR'] ?? null),
'Server IP' => $ipFormatter(gethostbyname($serverName = php_uname('n'))),
'Server name' => $serverName,
'Server IP' => $ipFormatter($_SERVER['SERVER_ADDR'] ?? null),
'HTTP method / response code' => isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] . ' / ' . http_response_code() : null,
'PHP' => PHP_VERSION,
'Xdebug' => extension_loaded('xdebug') ? phpversion('xdebug') : null,
Expand Down

0 comments on commit 5b26009

Please sign in to comment.