Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-01-11 17:56:54 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-01-11 18:24:18 +0300
commit590a8f07b9c9677240eb77f63afe23917f00993d (patch)
tree564c257e5075b85688b40d37bb777ea61fbd3d0d /web/html
parent594f004d2a80e54f972b25badacb28d2bf3acad5 (diff)
wireguard info page
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/inbound_info_modal.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html
index cf1a032b..cdcabad9 100644
--- a/web/html/xui/inbound_info_modal.html
+++ b/web/html/xui/inbound_info_modal.html
@@ -264,6 +264,45 @@
<td><a-tag color="green">[[ account.pass ]]</a-tag></td>
</tr>
</table>
+ <table v-if="dbInbound.isWireguard" style="margin-bottom: 10px; width: 100%;">
+ <tr class="client-table-odd-row">
+ <td>{{ i18n "pages.xray.wireguard.secretKey" }}</td>
+ <td>[[ inbound.settings.secretKey ]]</td>
+ </tr>
+ <tr>
+ <td>{{ i18n "pages.xray.wireguard.publicKey" }}</td>
+ <td>[[ inbound.settings.pubKey ]]</td>
+ </tr>
+ <tr class="client-table-odd-row">
+ <td>MTU</td>
+ <td>[[ inbound.settings.mtu ]]</td>
+ </tr>
+ <tr>
+ <td>Kernel Mode</td>
+ <td>[[ inbound.settings.kernelMode ]]</td>
+ </tr>
+ <template v-for="(peer, index) in inbound.settings.peers">
+ <tr>
+ <td colspan="2"><a-tag>Peer [[ index + 1 ]]</a-tag></td>
+ </tr>
+ <tr class="client-table-odd-row">
+ <td>{{ i18n "pages.xray.wireguard.publicKey" }}</td>
+ <td>[[ peer.publicKey ]]</td>
+ </tr>
+ <tr>
+ <td>{{ i18n "pages.xray.wireguard.psk" }}</td>
+ <td>[[ peer.psk ]]</td>
+ </tr>
+ <tr class="client-table-odd-row">
+ <td>{{ i18n "pages.xray.wireguard.allowedIPs" }}</td>
+ <td>[[ peer.allowedIPs.join(",") ]]</td>
+ </tr>
+ <tr>
+ <td>Keep Alive</td>
+ <td>[[ peer.keepAlive ]]</td>
+ </tr>
+ </table>
+ </template>
</template>
</a-modal>
<script>