improve interface view: show correct DNS entries

This commit is contained in:
Christoph Haas
2025-10-06 19:26:51 +02:00
parent 0305911467
commit 3f539a1615
3 changed files with 6 additions and 4 deletions

View File

@@ -117,6 +117,7 @@
"dns": "DNS-Server", "dns": "DNS-Server",
"mtu": "MTU", "mtu": "MTU",
"default-keep-alive": "Standard Keepalive-Intervall", "default-keep-alive": "Standard Keepalive-Intervall",
"default-dns": "Standard DNS-Server",
"button-show-config": "Konfiguration anzeigen", "button-show-config": "Konfiguration anzeigen",
"button-download-config": "Konfiguration herunterladen", "button-download-config": "Konfiguration herunterladen",
"button-store-config": "Konfiguration für wg-quick speichern", "button-store-config": "Konfiguration für wg-quick speichern",

View File

@@ -117,6 +117,7 @@
"dns": "DNS Servers", "dns": "DNS Servers",
"mtu": "MTU", "mtu": "MTU",
"default-keep-alive": "Default Keepalive Interval", "default-keep-alive": "Default Keepalive Interval",
"default-dns": "Default DNS Servers",
"button-show-config": "Show configuration", "button-show-config": "Show configuration",
"button-download-config": "Download configuration", "button-download-config": "Download configuration",
"button-store-config": "Store configuration for wg-quick", "button-store-config": "Store configuration for wg-quick",

View File

@@ -217,14 +217,14 @@ onMounted(async () => {
<td>{{ $t('interfaces.interface.ip') }}:</td> <td>{{ $t('interfaces.interface.ip') }}:</td>
<td><span class="badge bg-light me-1" v-for="addr in interfaces.GetSelected.Addresses" :key="addr">{{addr}}</span></td> <td><span class="badge bg-light me-1" v-for="addr in interfaces.GetSelected.Addresses" :key="addr">{{addr}}</span></td>
</tr> </tr>
<tr>
<td>{{ $t('interfaces.interface.dns') }}:</td>
<td><span class="badge bg-light me-1" v-for="addr in interfaces.GetSelected.Dns" :key="addr">{{addr}}</span></td>
</tr>
<tr> <tr>
<td>{{ $t('interfaces.interface.mtu') }}:</td> <td>{{ $t('interfaces.interface.mtu') }}:</td>
<td>{{interfaces.GetSelected.Mtu}}</td> <td>{{interfaces.GetSelected.Mtu}}</td>
</tr> </tr>
<tr>
<td>{{ $t('interfaces.interface.default-dns') }}:</td>
<td><span class="badge bg-light me-1" v-for="addr in interfaces.GetSelected.PeerDefDns" :key="addr">{{addr}}</span></td>
</tr>
<tr> <tr>
<td>{{ $t('interfaces.interface.default-keep-alive') }}:</td> <td>{{ $t('interfaces.interface.default-keep-alive') }}:</td>
<td>{{interfaces.GetSelected.PeerDefPersistentKeepalive}}</td> <td>{{interfaces.GetSelected.PeerDefPersistentKeepalive}}</td>