mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 22:55:06 +03:00
Connect first peer from config on demand.
This commit is contained in:
parent
0da871f528
commit
30c83f5ec3
2 changed files with 26 additions and 0 deletions
|
@ -169,6 +169,11 @@ func GenerateConfigJSON() []byte {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Connects first peer from config, just to reconnect fast after network switch
|
||||
func (m *Yggdrasil) ConnectFirstPeer() {
|
||||
m.core.ConnectFirstPeer()
|
||||
}
|
||||
|
||||
// GetAddressString gets the node's IPv6 address
|
||||
func (m *Yggdrasil) GetAddressString() string {
|
||||
ip := m.core.Address()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue