mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Show your IPv6 address and subnet when starting
This commit is contained in:
parent
bd32f5890b
commit
04b3e84023
2 changed files with 13 additions and 0 deletions
|
@ -62,3 +62,11 @@ func (c *Core) GetNodeID() *NodeID {
|
|||
func (c *Core) GetTreeID() *TreeID {
|
||||
return getTreeID(&c.sigPub)
|
||||
}
|
||||
|
||||
func (c *Core) GetAddress() *address {
|
||||
return address_addrForNodeID(c.GetNodeID())
|
||||
}
|
||||
|
||||
func (c *Core) GetSubnet() *subnet {
|
||||
return address_subnetForNodeID(c.GetNodeID())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue