Skip to content

Commit cb123ef

Browse files
Merge pull request #19691 from kamil-tekiela/Show-hostname
Show hostname on main page
2 parents ed5a2c4 + 2fa1c4e commit cb123ef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

resources/templates/home/index.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@
182182
{{ t('Server:') }}
183183
{{ database_server.host }}
184184
</li>
185+
<li class="list-group-item">
186+
{{ t('Hostname:') }}
187+
{{ database_server.hostname }}
188+
</li>
185189
<li class="list-group-item">
186190
{{ t('Server type:') }}
187191
{{ database_server.type }}

src/Controllers/HomeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public function __invoke(ServerRequest $request): Response
158158
$serverCharset = Charsets::getServerCharset($this->dbi, $this->config->selectedServer['DisableIS']);
159159
$databaseServer = [
160160
'host' => $hostInfo,
161+
'hostname' => $this->dbi->fetchValue('SELECT @@hostname;'),
161162
'type' => Util::getServerType(),
162163
'connection' => Generator::getServerSSL(),
163164
'version' => $this->dbi->getVersionString() . ' - ' . $this->dbi->getVersionComment(),

0 commit comments

Comments
 (0)