From ab46205d9ed82b5d9994d39fcd66f40ea2b0de1c Mon Sep 17 00:00:00 2001 From: m1m1sha <18262227804@163.com> Date: Thu, 12 Sep 2024 12:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20status=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the node goes online, it is displayed as local --- easytier-gui/src/components/Status.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/easytier-gui/src/components/Status.vue b/easytier-gui/src/components/Status.vue index 67b013e..5e730b2 100644 --- a/easytier-gui/src/components/Status.vue +++ b/easytier-gui/src/components/Status.vue @@ -40,10 +40,9 @@ const peerRouteInfos = computed(() => { }) function routeCost(info: any) { - if (!info.peer) - return t('status.local') - if (info.route) { + if (!info.peer && !info.route.peer_id) + return t('status.local') const cost = info.route.cost return cost === 1 ? 'p2p' : `relay(${cost})` }