Fix RetryPeersNow, move startup logging, don't set TUN address if not available

This commit is contained in:
Neil Alexander 2023-10-22 15:51:30 +01:00
parent 955aa4af79
commit 094f80f39c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
9 changed files with 43 additions and 16 deletions

View file

@ -78,6 +78,10 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
if err != nil {
panic(err)
}
address, subnet := m.core.Address(), m.core.Subnet()
logger.Infof("Your public key is %s", hex.EncodeToString(m.core.PublicKey()))
logger.Infof("Your IPv6 address is %s", address.String())
logger.Infof("Your IPv6 subnet is %s", subnet.String())
}
// Setup the multicast module.