fix: add machine with UFW firewall (allow ipv6 management traffic) fixes #65

This commit is contained in:
Pasha Sviderski committed 2025-08-04 16:50:18 +10:00
1 parent a7273c8c96
commit 35d0a90125
6 files changed
+129 -71

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ func MachineIP(subnet netip.Prefix) netip.Addr {
}
// ManagementIP returns the IPv6 address of a peer derived from the first 14 bytes of its public key.
// This address is intended for cluster management traffic.
// This address always starts with fdcc: and is intended for cluster management traffic.
func ManagementIP(publicKey secret.Secret) netip.Addr {
bytes := [16]byte{0xfd, 0xcc}
copy(bytes[2:], publicKey[:14])