mirror of
https://github.com/EasyTier/EasyTier.git
synced 2025-10-16 13:50:57 +08:00
节点信息组件添加隧道协议字段 (#931)
This commit is contained in:
@@ -106,6 +106,10 @@ function ipFormat(info: PeerRoutePair) {
|
|||||||
return ip ? `${IPv4.fromNumber(ip.address.addr)}/${ip.network_length}` : ''
|
return ip ? `${IPv4.fromNumber(ip.address.addr)}/${ip.network_length}` : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function tunnelProto(info: PeerRoutePair) {
|
||||||
|
return [...new Set(info.peer?.conns.map(c => c.tunnel?.tunnel_type))].join(',')
|
||||||
|
}
|
||||||
|
|
||||||
const myNodeInfo = computed(() => {
|
const myNodeInfo = computed(() => {
|
||||||
if (!props.curNetworkInst)
|
if (!props.curNetworkInst)
|
||||||
return {} as NodeInfo
|
return {} as NodeInfo
|
||||||
@@ -408,6 +412,7 @@ function showEventLogs() {
|
|||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column :field="routeCost" :header="t('route_cost')" />
|
<Column :field="routeCost" :header="t('route_cost')" />
|
||||||
|
<Column :field="tunnelProto" :header="t('tunnel_proto')" />
|
||||||
<Column :field="latencyMs" :header="t('latency')" />
|
<Column :field="latencyMs" :header="t('latency')" />
|
||||||
<Column :field="txBytes" :header="t('upload_bytes')" />
|
<Column :field="txBytes" :header="t('upload_bytes')" />
|
||||||
<Column :field="rxBytes" :header="t('download_bytes')" />
|
<Column :field="rxBytes" :header="t('download_bytes')" />
|
||||||
|
@@ -64,6 +64,7 @@ event_log: 事件日志
|
|||||||
peer_info: 节点信息
|
peer_info: 节点信息
|
||||||
hostname: 主机名
|
hostname: 主机名
|
||||||
route_cost: 路由
|
route_cost: 路由
|
||||||
|
tunnel_proto: 协议
|
||||||
latency: 延迟
|
latency: 延迟
|
||||||
upload_bytes: 上传
|
upload_bytes: 上传
|
||||||
download_bytes: 下载
|
download_bytes: 下载
|
||||||
|
@@ -62,6 +62,7 @@ show_event_log: Show Event Log
|
|||||||
event_log: Event Log
|
event_log: Event Log
|
||||||
peer_info: Peer Info
|
peer_info: Peer Info
|
||||||
route_cost: Route Cost
|
route_cost: Route Cost
|
||||||
|
tunnel_proto: Protocol
|
||||||
hostname: Hostname
|
hostname: Hostname
|
||||||
latency: Latency
|
latency: Latency
|
||||||
upload_bytes: Upload
|
upload_bytes: Upload
|
||||||
|
Reference in New Issue
Block a user