add management IP to machine and peer configs, update daemon to listen on it

This commit is contained in:
Pavel Sviderski
2024-08-30 18:33:37 +10:00
parent c93206e6d1
commit fd396dd91f
10 changed files with 124 additions and 39 deletions
+1 -1
View File
@@ -44,6 +44,6 @@ func (u *User) PublicKey() secret.Secret {
return pubKey[:]
}
func (u *User) IPv6() netip.Addr {
func (u *User) ManagementIP() netip.Addr {
return network.PeerIPv6(u.PublicKey())
}