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})` }