Connect first peer from config on demand.

This commit is contained in:
Revertron 2022-11-09 20:38:01 +01:00
parent 0da871f528
commit 30c83f5ec3
2 changed files with 26 additions and 0 deletions

View file

@ -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()