address space fix

This commit is contained in:
vadym 2021-09-13 11:09:40 +03:00
parent f11f5c59b9
commit 2aa03a5608
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ type Subnet [8]byte
// The 8th bit of the last byte is used to signal nodes (0) or /64 prefixes (1).
// Nodes that configure this differently will be unable to communicate with each other using IP packets, though routing and the DHT machinery *should* still work.
func GetPrefix() [1]byte {
return [...]byte{0x02}
return [...]byte{0xfc}
}
// IsValid returns true if an address falls within the range used by nodes in the network.

View file

@ -20,7 +20,7 @@ type version_metadata struct {
// Gets a base metadata with no keys set, but with the correct version numbers.
func version_getBaseMetadata() version_metadata {
return version_metadata{
meta: [4]byte{'m', 'e', 't', 'a'},
meta: [4]byte{'z', 'e', 't', 'a'},
ver: 0,
minorVer: 4,
}