Skip to content

Commit 6d1b5eb

Browse files
Merge pull request hestiacp#801 from kondurake/patch-2
Show domain IP as "IP → NAT"
2 parents 4375f79 + 065f567 commit 6d1b5eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/templates/admin/list_web.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
<div class="l-center units narrow">
5959
<?php
60+
$ips = json_decode(shell_exec(VESTA_CMD.'v-list-sys-ips json'), true);
6061
foreach ($data as $key => $value) {
6162
++$i;
6263
if ($data[$key]['SUSPENDED'] == 'yes') {
@@ -178,7 +179,7 @@
178179
</div>
179180
<!-- /.l-unit__name -->
180181
<div class="l-unit__ip">
181-
<?=str_replace('.', '<span>.</span>', $data[$key]['IP'])?>
182+
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$data[$key]['IP']} → {$ips[$data[$key]['IP']]['NAT']}"; ?>
182183
</div>
183184
<!-- /.l-unit__ip -->
184185
<div class="l-unit__stats">

0 commit comments

Comments
 (0)