Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions pong.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ message Property {
// ISO 3166-1 alpha-2 country code of the slot ("US", "DE", …).
string country = 2;

// Public IPv4 of the Node currently backing this slot, in dotted
// form ("203.0.113.7"). Empty / "0.0.0.0" while the slot is
// detached.
// Deprecated: use ip_bytes. Public IPv4 of the Node currently
// backing this slot, in dotted form ("203.0.113.7"). Empty /
// "0.0.0.0" while the slot is detached. New consumers should
// read ip_bytes instead; this field will be reserved once all
// clients have migrated.
string ip = 4;

// TCP port to dial on the backing Node. Always 443 in production
Expand All @@ -50,6 +52,12 @@ message Property {
// Node, in which case the Hub re-attaches it to a fresh Node and
// the client receives an updated Property.
uint64 expires = 7;

// Public IPv4 of the Node currently backing this slot, as four
// raw bytes in network byte order — same encoding as Peer.ip.
// Empty (zero-length) while the slot is detached. Replaces the
// deprecated string ip field (field 4).
bytes ip_bytes = 8;
}

// Peer describes one sibling Node in the fleet, advertised to
Expand Down