mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
feat: add peer_id in MyNodeInfo (#1821)
This commit is contained in:
@@ -183,6 +183,12 @@ const myNodeInfoChips = computed(() => {
|
|||||||
if (!my_node_info)
|
if (!my_node_info)
|
||||||
return chips
|
return chips
|
||||||
|
|
||||||
|
// peer id
|
||||||
|
chips.push({
|
||||||
|
label: `Peer ID: ${my_node_info.peer_id}`,
|
||||||
|
icon: '',
|
||||||
|
} as Chip)
|
||||||
|
|
||||||
// TUN Device Name
|
// TUN Device Name
|
||||||
const dev_name = props.curNetworkInst.detail?.dev_name
|
const dev_name = props.curNetworkInst.detail?.dev_name
|
||||||
if (dev_name) {
|
if (dev_name) {
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ export interface NodeInfo {
|
|||||||
stun_info: StunInfo
|
stun_info: StunInfo
|
||||||
listeners: Url[]
|
listeners: Url[]
|
||||||
vpn_portal_cfg?: string
|
vpn_portal_cfg?: string
|
||||||
|
peer_id: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StunInfo {
|
export interface StunInfo {
|
||||||
|
|||||||
@@ -377,6 +377,7 @@ impl NetworkInstance {
|
|||||||
.map(|s| s.parse::<url::Url>().unwrap().into())
|
.map(|s| s.parse::<url::Url>().unwrap().into())
|
||||||
.collect(),
|
.collect(),
|
||||||
vpn_portal_cfg,
|
vpn_portal_cfg,
|
||||||
|
peer_id: my_info.peer_id,
|
||||||
}),
|
}),
|
||||||
events: launcher
|
events: launcher
|
||||||
.get_events()
|
.get_events()
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ message MyNodeInfo {
|
|||||||
common.StunInfo stun_info = 5;
|
common.StunInfo stun_info = 5;
|
||||||
repeated common.Url listeners = 6;
|
repeated common.Url listeners = 6;
|
||||||
optional string vpn_portal_cfg = 7;
|
optional string vpn_portal_cfg = 7;
|
||||||
|
uint32 peer_id = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NetworkInstanceRunningInfo {
|
message NetworkInstanceRunningInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user